Run a Macro via .bat file

  • Thread starter Thread starter Christophe
  • Start date Start date
C

Christophe

Hi,

I'm trying to run a macro via a .bat-file (to make a scheduled task).

This is in my .bat file:
C: CD Program Files\Microsoft Office\OFFICE11 Msaccess.exe C:\Database\
AutoAlertByEmail.adp /x Macro1

When I start the bat file nothing happens.

Can anyone see what is wrong?

Thanks in advance,
christophe
 
Try this:

"C:\CD Program Files\Microsoft Office\OFFICE11\Msaccess.exe"
"C:\Database\AutoAlertByEmail.adp" /x Macro1
 
Back
Top