start Excel file with macro from batch file with no question asked - how ?

mrchonginhk

Well-known Member
Joined
Dec 3, 2004
Messages
679
I have an Excel file with macro.
I need to use batch file to start it but since it has macro, the process was stuck and need somebody to manually click yes.

I remember there is a parameter or switch in batch file to start the Excel without asking macro Yes No.

Anyone can help to solve this problem ? Thanks
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Enter This Line Of Code :

Code:
'code here
Application.DisplayAlerts = False
'code here

ZAX
 
Upvote 0
I hope there is not such a parameter. That would make it easy for virus writers.

What you can do is go into excel options and add the place that the file is in to the trusted zones.

Go to Options then select the "Trust Center" and click "Trust Center Settings" and select "Trusted Locations"
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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