-
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
-
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...