Open External File

  • Thread starter Scott Whetsell, A.S. - WVSP
  • Start date
S

Scott Whetsell, A.S. - WVSP

I would like to be able to have the user click a button on the form which
will open a file in a specified directory which matches criteria on the
selected record. The target file will probably be a pdf file. I'm not
looking to import any data from the target file, just open it for review.

Thanks.
 
A

Albert D. Kallal

"Scott Whetsell, A.S. - WVSP"
I would like to be able to have the user click a button on the form which
will open a file in a specified directory which matches criteria on the
selected record. The target file will probably be a pdf file. I'm not
looking to import any data from the target file, just open it for review.

You can go:

application.FollowHyperlink "c:\path name.txt"

Any legal file extension will work (the above would open a text file, but it
works equal excel, word, or a pdfs file...
 
S

Scott Whetsell, A.S. - WVSP

Very simple fix, yet very effective. Thanks!!

Albert D. Kallal said:
"Scott Whetsell, A.S. - WVSP"


You can go:

application.FollowHyperlink "c:\path name.txt"

Any legal file extension will work (the above would open a text file, but it
works equal excel, word, or a pdfs file...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top