Run a Macro via .bat file

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
 
K

Ken Snell \(MVP\)

Try this:

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

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