Hi all,
I currently have a PERL script that calls a MS Word macro via system(), the macro does it's thing and returns to the PERL script to finish.
I would like to know how I could pass to the MS Word macro some constants from the PERL script. This is what I have on the PERL side:
(all those scalars are actually constants within the PERL script)
@args = ($vbmacro, $file1, $file2, $file1.".txt", $file2.".txt", $file1.".doc", $file2.".doc", $source, $dest);
system(@args) == 0 or die "system @args failed: $?";
My question is...how do I get the macro to "accept" those passed arguments? (how can I know if the macro recognizes and can use those arguments)??
Thanks in advance!
Gary
I currently have a PERL script that calls a MS Word macro via system(), the macro does it's thing and returns to the PERL script to finish.
I would like to know how I could pass to the MS Word macro some constants from the PERL script. This is what I have on the PERL side:
(all those scalars are actually constants within the PERL script)
@args = ($vbmacro, $file1, $file2, $file1.".txt", $file2.".txt", $file1.".doc", $file2.".doc", $source, $dest);
system(@args) == 0 or die "system @args failed: $?";
My question is...how do I get the macro to "accept" those passed arguments? (how can I know if the macro recognizes and can use those arguments)??
Thanks in advance!
Gary