Call a macro from C# URGENT!!!

  • Thread starter Thread starter Chris Calhoun
  • Start date Start date
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"
 
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
 
Back
Top