http://www.perlmonks.org?node_id=861445


in reply to How do I apply formatting to a particular word in a docx file using Win32::Ole in Perl?

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,
SSF