Thread: Change Font

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

    Join Date
    Jul 2003
    Posts
    1
    Rep Power
    0

    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
    Location
    No es importante
    Posts
    2,065
    Rep Power
    14
    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