How to Open Excel to a specific file via Access Command Button?

  • Thread starter dohernan via AccessMonster.com
  • Start date
D

dohernan via AccessMonster.com

I have a Form in Access with a few Command buttons to Excel spreadsheets.
All I want to do is have the user click a button and go to the Excel
spreadhseet they choose.
I'm not sure how to do that?

Thanks. :)
 
F

fredg

I have a Form in Access with a few Command buttons to Excel spreadsheets.
All I want to do is have the user click a button and go to the Excel
spreadhseet they choose.
I'm not sure how to do that?

Thanks. :)

"To the Excel spreadsheet they choose"?
How are we to know how they choose?

Code the click event of a command button:
Application.FollowHyperlink "PathToFile\ChosenFileName.xls"
 
D

dohernan via AccessMonster.com

fredg said:
"To the Excel spreadsheet they choose"?
How are we to know how they choose?

Code the click event of a command button:
Application.FollowHyperlink "PathToFile\ChosenFileName.xls"


Thanks, Hyperlink works perfectly.
 

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