run Macro from command line

vaibhav_patel

New Member
Joined
Nov 2, 2004
Messages
1
hi!

Can anyone tell me how to run the macro from command line without opening the Ms Access application.

I want to add the Macro command in my batch file. And I don't want toopen the Access Framework. I am running Macro using this command.


"C:\Program Files\Microsoft Office\Office11\MSAccess.exe" c:\drug_mlt\drug_mlt.mdb /runtime /nostartup /excl /x export_table

Using this command Ms Access framework is opening and it is exporting the tables. so it shows the progress bar on the status bar. But after the Macro finish i need to close this application. I don't want to run the Macro without opening Access Framework.

Any suggestion.

Thanks in Advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You could try a DOS Kill Proccess_Name technique inside the batch file.
You could also use something like

Code:
Application.Quit

Inside the "Macro" at the end.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,825
Messages
6,162,190
Members
451,752
Latest member
majbizzaki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top