Startup Switches

When you open Excel a lot of the settings are read from the Windows Registry, including details of any built-in add-ins that are currently installed.
There are a number of command line switches that can also be used to affect the way that Excel starts.
These switches can be added to the Properties of a shortcut that starts Excel.

/safemodeOpens Excel ignoring all the Startup Folders and All Add-ins, including VBA Add-ins, Automation Add-ins and COM Add-ins.
This is the same as holding down the Ctrl key when you start Excel.
/safeSame as above
/sSame as above
/a progidOpens Excel and loads the Automation Add-in with the corresponding ProgID.
excel.exe /a MyProgID.Name
/automationOpens Excel ignoring all the Startup Folders and any VBA Add-ins.
/embeddedOpens Excel in Embedded mode which prevents the default workbook Book.xlt from being created.
/embedSame as above
/eSame as above
/m(Redundant) Opens Excel with a new workbook containing a single Excel 4.0 macro sheet.
/n filepathOpens Excel using a specified file as a template for the default workbook.
excel.exe /n "c:\temp\MyBook.xlsx"
/oOpens Excel forcing it to re-register itself in the Window Registry.
/p folderpathOpens Excel overriding the default local file location user option with a new folder path.
/r filepathOpens Excel with a specific file in read-only mode. You must include the path and filename afterwards.
/t filepathOpens Excel using a specified file as a template for the default workbook.
excel.exe /t http://mysite.com/MyBook.xlsx
/xStarts a new instance of Excel as a separate process.
/regserverForces Excel to re-register itself in the Windows Registry and then quit.
/unregserverForces Excel to unregister itself in the Windows Registry and then quit.
filepath (no switch)Starts Excel and opens a specific file.
This parameter does not require a switch
excel.exe "c:\temp\MyBook.xlsx"

Using (Start > Run)

The easiest way to run Excel with additional switches is to use the Command Line.
All you need to do is select (Start > Run) and type the full folder path of the Excel.exe file.
This folder path needs to be enclosed in parentheses with the corresponding startup switch added afterwards.
You will probably need to change the folder path, the one shown here corresponds to an Office 365 installation.
"C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE" /s


Safe Mode

When you open Excel in Safe mode this will be displayed in the Title bar.


© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext