Results 1 to 2 of 2

Thread: Can you do this in VB

  1. #1

    Thread Starter
    Addicted Member AmmerBow's Avatar
    Join Date
    Sep 2000
    Posts
    195
    Word will convert a word perfect file when you open it and save it as a new word file.

    Could you make a vb app that would take a list of seleted files and auto convert them using word's APIs or something like that??


  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Sydney, Australia
    Posts
    74
    I havent tried this myself, so if it doesnt work I'm sorry

    First record a macro in word when you convert 1 file from word perfect.

    then

    Sub temp()

    Dim appWord As Word.Application

    Set appWord = CreateObject("Word.Application")

    With appWord
    .Visible = True
    .Documents.Open FileName:="a.b"


    ' put other code in here
    ' each line of code from the recorded macro will need a . in front of it



    .Quit
    End With

    Set appWord = Nothing

    End Sub


    (Fingers crossed it should work)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width