Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
Is there any way to find the formattings like bold italic, bold, superscript etc and replace with someother text using Win32::OLE.
Here is my coding,
$rng->find->clearformatting; $rng->find->font->{'Bold'}= "True"; $rng->find->replacement->clearformatting; $rng->find->execute({findtext=>"[0-9]{1,}", wrap=>wdFindContinue, rep +lacewith=>"<bold>^&</bold>", matchwildcards=>'True', replace=>wdRepla +ceAll});
Using the above code, all the numbers are replaced, what i want is, i want to find the numbers that are in bold alone and replace with some tag.
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32::OLE formattings
by maa (Pilgrim) on Mar 09, 2005 at 07:56 UTC | |
by Anonymous Monk on Mar 09, 2005 at 08:29 UTC | |
by maa (Pilgrim) on Mar 09, 2005 at 09:29 UTC | |
by Anonymous Monk on Mar 10, 2005 at 01:29 UTC |
Back to
Seekers of Perl Wisdom