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

Open excel worksheet from access

Status
Not open for further replies.

kkgusta

MIS
Nov 10, 2005
42
NZ
HI there,
Is anyone here have any example or have any idea to open an excel worksheet from Access using a Command button. I have a table to store the hyper for the excel work sheet.


Thank in advance,
 
Have you tried the FollowHyperlink method ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi there,
I have tried the hyperlink method but it's not really what I need. The hyperlink can only help me to open the xls file but not display the specific worksheet that I needed. I have just try the method on faq705-1971 but it doesn't work well i think i have miss something.


Anyway thank for you reply. I need to take a rest. will give it a try later.
 
Have you tried the macro recorder in Excel. That should record the code to move to the sheet you desire.
 
Have you tried something like this ?
FollowHyperlink "\path\to\workbook.xls", "SheetName!$A1:$A1"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top