Perl Monk, Perl Meditation | |
PerlMonks |
Re: How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?by sflitman (Hermit) |
on Sep 23, 2010 at 05:06 UTC ( [id://861445]=note: print w/replies, xml ) | Need Help?? |
I think you shouldn't call TypeText since that is what is adding the original paragraph. The Selection is probably the paragraph at that point, which is why the whole line gets bold. Set the selection using $Word->MoveRight (check the API, I believe you can select a word at a time with this method, at least when called from Visual Basic).
HTH,
In Section
Seekers of Perl Wisdom
|
|