Results 1 to 2 of 2

Thread: Obtain Word folder

  1. #1
    patricktully
    Guest

    Obtain Word folder

    I want to shell to Word in my VB program. Should I use some sort of API call to try and find the Word default folder and executable? If so, what should I use?

    I really don't want to loop through all the folders on the hard drive to try and find it.

    Thanks,

    PT

  2. #2
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    I'm sure our API experts will find a quicker solution to this, but your solution can be reached using OLE Automation:

    Code:
    Dim wrd As New Word.Application
    
    debug.Print wrd.Path
    Don't forget to add a reference to Word8.0 library , and don't forget to close the object ofter you've finished...

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