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

command line function with excel

Status
Not open for further replies.

ninash

Technical User
Jul 6, 2001
163
GB
I am designing a database that has a linked table (Excel Spreadsheet). The data in this table changes all the time and a macro has been placed in it to update the information.
My problem is this....
I need to run the macro in the spreadsheet when the database opened to ensure the correct information is used.

If there is anyone that knows how to do this please please help
 
Hi,
There are all kinds of events that are tied to the Workbook Object and Sheet Objects.
In the VBA Project browser, click on the workbook object and select Workbbok as the object (as opposed to General), and then select the Open event.
In the workbook_Open event, make a call to the procedure(s) you want to run when the workbook containing the database opens.
:) Skip,
metzgsk@voughtaircraft.com
 
thanks Skip
I will give it a try
X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top