Use 'or die Win32::OLE->LastError();' to see what the error is. In this
case it was 'Type mismatch' on the line with Ecexute. Then look in the
Visual Basic Object Browser (in Word, under the tools->maco menu is the
Visual Basic Editor, you use this to look at macros that you want to do in
perl, i
Greetings to all,
i want to do some 'find and replace' on a .doc file.
Sample i found on this mailing list was:
-
use strict;
use Win32::OLE;
use Win32::OLE::Const;
my $wd = Win32::OLE::Const->Load("Microsoft Word 9.0 Object Library");
my($outputFile) = 'file.doc';
my($word) = W