in reply to Perl to VB conversion

You can try also to use visualperl for .net (Activestate); or use PerlCtrl to make dlls which can be used in VBA

Hopes
$_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s, $_^=q,$\^-]!,,print