Call a macro from C# URGENT!!!

V

Van T. Dinh

I don't know C# but if I automate Access and create the Access Application
Object "objAccessApp", then the following will execute a Macro stored in
Access:

objAccessApp.DoCmd.RunMacro "MacroName"
 
S

Steve Schapel

Chris,

I don't know anything about c#, but you can run an Access macro from a
Command Line such as...
"C:\PathToAccess\Msaccess.exe" "C:\PathToDB\MyDB.mdb" /x macroname
Maybe that will give a clue to the direction to take?

- Steve Schapel, Microsoft 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