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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using word to open filename from textbox 1

Status
Not open for further replies.

Terence

Technical User
Feb 22, 2001
30
US
HI All , i am trying to open a file that i have got in a textbox and using word to open the file. I have found how to open word from a file that is in the code like this:

objWord.App.Documents.Open "c:\filename.txt"

but can't get the the textbox filename to work....

objWord.App.Documents.Open "text1.text"

any ideas??? s-)
 
Er, drop the quotes around it?

objWord.App.Documents.Open text1.text

instead of

objWord.App.Documents.Open "text1.text"
 
why didn't i think of that. thanks it works........
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top