Mastering Quick Launches: Starting Microsoft Excel via Command Line
Mastering Quick Launches: Starting Microsoft Excel via Command Line
Quick Links
You can open Microsoft Excel from the Command Prompt, and you can also add additional parameters to the command to do things like open Excel with a specific template, or launch Excel in Safe Mode for troubleshooting.
Table of Contents
Launch Excel Using Command Prompt
There are many ways to start Excel using Command Prompt, but if you want to launch Excel in its normal state (that is, the same way that Excel launches when you click the shortcut), then there are two different ways to do that.
First, there’s the simple way. Open Command Prompt by typing “cmd” in the Windows Search bar and clicking the Command Prompt app from the search results.
Command Prompt will open. To launch Excel, type this command and press Enter:
start excel
Excel should launch immediately.
Another way to open Excel is by locating the directory that holds the excel.exe file, changing to that directory in Command Prompt, and then running a simple command.
To locate the excel.exe file, you’ll need to be in the Program Files directory in Command Prompt. You can use the cd command to change the directory. Type this command in Command Prompt, and then press Enter:
cd"program files”
You’ll now be in the Program Files directory. Next, you need to find out in which directory the excel.exe file is located. To do so, run this command:
dir excel.exe /s
The directory of the excel.exe file will be returned.
Now that you know the directory where excel.exe is located, navigate to that directory. Since we’re already in the Program Files directory, we can omit that from the next command. In our example, we’d run this command:
cd Microsoft Office\root\Office16
Now that you’re in the correct directory, all that’s left to do is to type excel
in Command Prompt and press Enter.
Excel will now open. However, the main purpose of launching Excel from Command Prompt is so that you can control how it opens, and you do that by appending the various switches and parameters that are available to the command.
Excel Command Line Switches and Parameters
Here’s a list of command switches provided by the official Microsoft Office support site . Add these to the end of the start excel
command in Command Prompt.
Switch and Parameter | Description |
---|---|
workbook path | file nameNo switch is required. | Opens the target file.**Example:**start excel “c:\Example Folder\file_name1.xlsx”orstart excel http://MySite/file\_name1.xlsx |
/r workbook path | file name | Opens the target workbook as read-only.**Example:**start excel /r “c:\Example Folder\file_name1.xlsx”orstart excel /r http://MySite/file\_name1.xlsx |
/t workbook path | _file name_You can also use /n instead of /t to achieve the same result. | Opens the target file as a template.**Example:**start excel /t “c:\Example Folder\file_name1.xlsx”orstart excel /t http://MySite/file\_name1.xlsx |
/e or /embed | Prevents the Excel startup screen from appearing and a new blank workbook from opening. |
/s or /safemode | Starts Excel in Safe Mode. This launches Excel without any additional add-ins, templates, or other customizations. It’s helpful when troubleshooting problems in Excel. |
/m | Creates a new workbook that contains a single XLM macro sheet. |
/a progID | Loads the Automation add-in specified by the progID of the add-in.**Example:**start excel /a MyProgId.MyProgID2.1 |
/x | Starts a separate process of Excel. |
Using these commands, you can open Excel in a number of different ways.
Excel isn’t the only Office program that you can open with Command Prompt—you can also use it to launch Microsoft Word and PowerPoint . The commands can differ between applications, so explore which options are available for each one.
Also read:
- Canon MP250 Driver Installation Instructions – How to Keep Your Printer Updated
- Download and Install the Latest HP OfficeJet 4655 Printer Drivers
- Expert Advice: Eliminating The Sims 4 Error Messages on Your Graphics Card
- Get the Most Recent Realtek Bluetooth Drivers Now: Windows 11 and 10 Supported
- Get the Newest Magicard Rio Pro Driver Download: Optimized for Modern Windows OS
- Guide to Mirror Your Infinix Hot 40 to Other Android devices | Dr.fone
- How to Fix Poco M6 Pro 5G Find My Friends No Location Found? | Dr.fone
- In 2024, 10 Easy-to-Use FRP Bypass Tools for Unlocking Google Accounts On Honor X50i
- In 2024, How To Unlock Apple iPhone SE (2020) Without Passcode? 4 Easy Methods
- In 2024, The Game Changer for TikTok Creators Advanced Editing in Pro Tools, Mac Edition
- Mitigate Malware's Memory Footprint in Your System
- Seamless Pairing with Toshiba - Find and Download the Right Bluetooth Driver
- Voice of Vogue Establishing Your Channel in the Cosmetic World
- Which Pokémon can Evolve with a Moon Stone For Honor Play 7T? | Dr.fone
- Title: Mastering Quick Launches: Starting Microsoft Excel via Command Line
- Author: David
- Created at : 2024-10-15 17:45:25
- Updated at : 2024-10-20 18:36:45
- Link: https://win-dash.techidaily.com/mastering-quick-launches-starting-microsoft-excel-via-command-line/
- License: This work is licensed under CC BY-NC-SA 4.0.