This probably really easy, but i can't get it to work.
i'm trying to alter a page formatting macro so that it searches for a specific font in a document and then changes that font to another one
Depending on how often the font changes, you can just loop through the document. I don't think that the Font property is available for the Sentences and Words collections. You may have to select the word or sentance, then check and change the font of the selection object.
If you want to check each word individually:
Code:
Dim vSentance As Variant
For Each vSentance In ActiveDocument.Sentences
To check each word individually:
Dim vWord As Variant
You can use the Find/Replace dialog box. It's recordable. Hit ctrl-h and then hit the More button to get into Format and then the font or style you're looking for.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.