in reply to Re: Changing VB to Perl
in thread Changing VB to Perl

Thanks a lot foe your advice. I’ve now managed to get one of the vb lines changed and working: Selection.Rows.ConvertToText (is now) $word -> Selection->Rows->ConvertToText;. But I’m still struggling with: Separator:=wdSeparateByCommas, NestedTables:= _True. Can you help? What do I do with the :=?

Replies are listed 'Best First'.
Re^3: Changing VB to Perl
by Corion (Patriarch) on Nov 30, 2008 at 13:18 UTC

    := denotes named arguments in Visual Basic. See Win32::OLE for how to handle named arguments with it.

    When translating from Visual Basic to Perl, it behooves you to know at least a bit about both languages. I'm confident that you can find resources for the VB syntax in your local library or even online.

Re^3: Changing VB to Perl
by ig (Vicar) on Nov 30, 2008 at 19:29 UTC