Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript in Word to change font

Status
Not open for further replies.

elise

Programmer
Sep 27, 2001
3
AU
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

For Each vWord In ActiveDocument.Words
Code:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top