Call an Access macro from an Excel macro

J

Jason W

I have a macro in an Access database that I would like to call in a macro I'm
creating for excel. How do I do that? And is it possible to do without
opening Access?
 
L

Larry Linson

Jason W said:
I have a macro in an Access database that I would
like to call in a macro I'm creating for excel. How
do I do that? And is it possible to do without
opening Access?

Access and Excel macros are not compatible, and you can't directly call one
from the other.

In fact, the only way I know for you to execute an Access macro is to open
an Access database. You can use the command line argument /X to specify a
macro to be run at startup; or open an Access database with code in an event
of the specified Startup Form that runs the macro you want. In Access 2003
Help, the search terms "command line option" will give you information on,
well, "command line options".

Explain what it it that you are trying to accomplish, and perhaps someone
can make a useful suggestion.

Larry Linson
Microsoft Office Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top