July 14th, 2003, 10:46 AM
I have numerous MS Word documents in which I need to change an existing font. How can I use VB to automate? During a migration from operating systems some of the fonts were changed to MS Mincho from Times New Roman. The idea is to place all of the documents in a folder, run the VB application to make a list of the .doc files, scan through each of the .doc files for the existence of the incorrect font and change that font to the correct font. Any code samples?
July 15th, 2003, 10:36 PM
Create an instance of MS Word, generate a list of the word documents, open a document up, programatically select all text, change font, save, next document and so on. You will have to reference the word component and you can use a macro to learn the Word specific VB commands.