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!

Question - How to trigger access code from Excel?

Status
Not open for further replies.

101287

MIS
Apr 8, 2006
189
US
Can anyone guide me or provide me example on how to trigger and access macro or code from excel?

Would like to see code example. Thank you for help and guidance.

Luis
 
It depends on what you're trying to achieve.

You can add a reference to an MDB file in an Excel VBA project and call the database's subs and functions from within your Excel VBA project in the same way you would if they were part of the Excel project itself.

If you are talking about launching an Access system and calling a particular sub or function I would create a macro in the database to call the relevant code and launch the database using a command-line containing the /x switch to call the macro.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top