How to start excel from a batch file

jkpd2000

Board Regular
Joined
May 8, 2002
Messages
91
Hi ,

I have to open an excel file say RESULTS
from a batch file. because i am scheduling the batch file to run automatically.

Any thoughts.
 
Hi...I have a similar situation. I need to open my excel file and save it on existing XML data file. Where exactly I have to create batch file with the command call xmlData.xlsx? Appreciate your response.
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I am trying to run a macro called "AUTO" in an excel workbook called "TEST". I would like this to be all automatic and run every minute.

How do I create either the excel file to do this or a batch file to do this?
 
Upvote 0
I am also facing with the similar problem..i want to run a macro from batch file.In my macro i had used
Sub Auto_Open()
Call my_macro_to_run
End Sub

The above code i have used inorder to run my macro automactically.

till this it works fine for me.....
but i don't know how to call this my_macro_to_run.xlm from batch(.bat) file
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,312
Members
448,564
Latest member
ED38

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