Thread: Change Font

  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Rep Power

    Change Font

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2003
    No es importante
    Rep Power
    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.

IMN logo majestic logo threadwatch logo seochat tools logo