Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thank you all who assisted me previ

Status
Not open for further replies.

mileseve1

Technical User
Oct 12, 2003
9
0
0
US
Thank you all who assisted me previously with opening Word from VB. I have a related issue:

I have a program that based upon a series of correct answers will open a word file from VB 6.0. The problem I have is I want to make this an executable file where I can pull the file or files from the same folder with the vb program. In order to do this I would have to be able to use the program from other computers therefore I can't specific the path (c:)Any ideas on how to do this?

Thanks

PS. The program works fine with the path and filename.

 

If the files are installed with the program you can use...
[tt]
FilePathName = App.Path & "\filename.extension"
[/tt]

Or if you are working on a network and want to keep the files in one place for everyone to access you can use...
[tt]
FilePathName = "\\servername\sharename\folder\filename.extension"
[/tt]

Not quite sure what you are asking...

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top