Is it possible to create a Word 2003 Macro to change the font style of certain segments of a document?
For example, say I have a document that has a large portion of text as bold italic and 12 point font. I’d like to replace all text with these characteristics with underlined 14 point font.
I’ve already done some searches on Google, StackOverflow and Microsoft’s website but I haven’t been able to find anything that discusses if this is even possible.
Any help?
Yeah, you’ll want to use the
.Findobject and it’s child.Replacementcontent. You can do this on aSelection(limited run), aRange(paragraphs, stories, etc.) or the whole document. The sample below is for the whole document (ActiveDocument.Content).