Scheduled Task Opens Excel in Safe Mode

mosh

Board Regular
Joined
Jun 18, 2006
Messages
54
Hey Guys,

I have tried to automate a running of a report in Excel which runs fine when I open it normally. All security settings have been set to low and the macros within run fine. I've now tried to schedule it via MS Scheduler but it seems to open the workbook in safe mode thus not allowing it to run the automatic macros i've created.

For Run I have:

"C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" -sysin "xxxx\scheduled.xlsm"

For Start In I have:

"C:\Program Files\Microsoft Office\Office12"

Can anyone help as to how it can open Excel without it being in safe mode?

Many thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I suspect removing the -sysin would do it - what is that supposed to do? (it doesn't tally with any startup switch I know of, although it's close enough to /s for me to think that's why it's running in safe mode)
 
Upvote 0
Thank you very much! I've been looking at this for a while. Can you explain why people use -sysin?
 
Upvote 0

Forum statistics

Threads
1,225,690
Messages
6,186,458
Members
453,356
Latest member
Zulkifal Shahzad

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