Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / February 2006

Tip: Looking for answers? Try searching our database.

Linking to specific Excel spreadsheet from Access form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Decembersonata - 01 Feb 2006 15:51 GMT
My access db relies on information that first must be reformatted using
Excel.  On my Add New Record form, I want to link to this Excel spreadsheet
using a command button.  How do I specifiy the specific spreadsheet to be
called up?  I'm assuming I'll use an On Click procedure, but need help
writing the Visual basic code.  Thanks
fredg - 01 Feb 2006 18:09 GMT
> My access db relies on information that first must be reformatted using
> Excel.  On my Add New Record form, I want to link to this Excel spreadsheet
> using a command button.  How do I specifiy the specific spreadsheet to be
> called up?  I'm assuming I'll use an On Click procedure, but need help
> writing the Visual basic code.  Thanks

If you wish to open the specific spreadsheet using a command button,
you can use:
Application.Followhyperlink "Path to spreadsheet\SpreadsheetName.xls"

You could also link to the spreadsheet using an OLEUnbound control.
If you set it's Enabled property to Yes, and it's Locked property to
No, clicking on the control will open the spreadsheet.

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

John Nurick - 01 Feb 2006 19:16 GMT
If Fred's response isn't what you were thinking of, how about
DoCmd.TransferSpreadsheet acLink... ?

>My access db relies on information that first must be reformatted using
>Excel.  On my Add New Record form, I want to link to this Excel spreadsheet
>using a command button.  How do I specifiy the specific spreadsheet to be
>called up?  I'm assuming I'll use an On Click procedure, but need help
>writing the Visual basic code.  Thanks

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.