gibsonca has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
Where do I find the complete information on what I can do with Win32::OLE, when modifying an M$ word document? For example, I found that following code on the web, and it works on my MS Word input file, but I would like to know 'the rest of the story'.
I'd like to know how the originally author figured this much out!
Thanks for your time!
$selection->{'Find'}->ClearFormatting; $selection->{'Find'}->{'Style'} = $doc->Styles('Title'); $selection->{'Find'}->{'Text'} = "app"; $selection->{'Find'}->Execute; $selection->{'Find'}->{'Replacement'}->{'Text'} = "B"; $selection->{'Find'}->Execute({Replace => wdReplaceAll}); $selection->{'Find'}->{'Forward'} = 1; # find next instance $selection->{'Find'}->Execute; $selection->{'Find'}->{'Format'} = 1; $selection->{'Find'}->Execute;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where is the Win32::OLE Docs
by CountZero (Bishop) on Oct 08, 2009 at 21:56 UTC | |
|
Re: Where is the Win32::OLE Docs
by davies (Monsignor) on Oct 08, 2009 at 23:06 UTC | |
|
Re: Where is the Win32::OLE Docs
by Gangabass (Vicar) on Oct 09, 2009 at 08:41 UTC | |
|
Re: Where is the Win32::OLE Docs
by wfsp (Abbot) on Oct 09, 2009 at 09:23 UTC | |
|
Re: Where is the Win32::OLE Docs
by Burak (Chaplain) on Oct 10, 2009 at 22:26 UTC | |
|
Re: Where is the Win32::OLE Docs
by Anonymous Monk on Oct 09, 2009 at 08:53 UTC |