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!

Open an excel file from Access

Status
Not open for further replies.

robojeff

Technical User
Dec 5, 2008
220
US
Is there an easy way in Access 2003 to open an excel file while giving the user the typical Windows file search/open screen to allow them to choose the file that they wish to open?

Thanks
 
Can't you use the FileSystemObject to create an instance of a new Excel.Application and tell it to load the file directly?



Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software." <-- Me

For all your testing needs: Forum1393
 
Thanks for the tip... I will search on FileSystemObject to see how to use it with my access script

 
Is this what you're looking for?

Code:
Dim strDlg As String
      strDlg = "Select the excel file"
      varFileName = adhGetExcelDataPath(strDlg)

varFileName = the path to the excel file chosen by the user.

Hope this helps!
Stephanie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top