Peter Buck wrote:
Does anyone have an example of a perl script acting on MS Word
documents using Win32::OLE and Selection.Find.Execute? I have read
the
Win32 man page but its examples for Excel and Access don't help. I
found a Powershell script that does what I want but can't
Peter,
OLE needs Variant values. Perl and the OLE modules will convert most of
these on he fly for you, but sometimes I find I have a need to convert
booleans explicitly.
my $false = Win32::OLE::Variant-new(VT_VARIANT, 0);
my $true = Win32::OLE::Variant-new(VT_VARIANT, 1);
Mark
On 9/12/2010
On Sun, 12 Sep 2010, Peter Buck wrote:
Does anyone have an example of a perl script acting on MS Word
documents using Win32::OLE and Selection.Find.Execute?
Actually, I do, and it is even part of the Win32::OLE module
distribution on CPAN. But since it is not being installed
with the actual