Excel - How To Troubleshoot - An Error Occurred When Sending Commands To The Program - Error Messages
Excel - How To Troubleshoot - An Error Occurred When Sending Commands To The Program - Error Messages
com/en-ca/kb/3001579
0 Sign in
Too many Excel add-ins have been added to the program, or one of the add-ins is corrupted.
This error indicates that some process that is running inside Excel will not let Excel close. There are many possible
reasons that this error occurs. You must understand your environment to determine which of the methods in the
"Resolution" section will work best for you.
To resolve this problem, try the following methods, as appropriate, in the given order.
When you double-click an Excel workbook in Windows Explorer, a dynamic data exchange (DDE) message is sent to
Excel. This message instructs Excel to open the workbook that you double-clicked.
If you select the "Ignore" option, Excel ignores DDE messages that are sent to it by other programs. Therefore, the
1 of 5 1/14/2017 8:46 PM
Excel: How to troubleshoot "An error occurred when sending commands ... https://support.microsoft.com/en-ca/kb/3001579
DDE message that is sent to Excel by Windows Explorer is ignored, and Excel does not open the workbook that you
double-clicked.
3. Clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box, and then click OK.
Note For more information about how to turn off DDE, see the following Microsoft Knowledge Base article:
211494 "There was a problem sending the command to the program" error in Excel
If these steps do not resolve the problem, go to Method 2.
Windows 8
1. On the Start screen, type Control Panel.
3. Click Default Programs, and then click Set your default programs.
4. Click Excel, and then click Choose default for this program.
5. On the Set Program Associations screen, click Select All, and then click Save.
Windows 7
1. Click Start, and then click Control Panel.
6. If Excel does not appear in this list, click Browse, locate the Excel installation folder, click Excel.exe, and then
click Excel.
2 of 5 1/14/2017 8:46 PM
Excel: How to troubleshoot "An error occurred when sending commands ... https://support.microsoft.com/en-ca/kb/3001579
4. Click or tap Microsoft Office 365, and then click or tap Change.
5. Click or tap Online Repair, and then click or tap Repair. You may have to restart your computer after the
repair process is finished.
Windows 7
1. Click Start, and then click Control Panel.
Note You may have to restart your computer after the repair process is complete.
2. In the Manage list at the bottom of the screen, select COM Add-Ins item, and then click Go.
3. Clear one of the add-ins in the list, and then click OK.
4. Restart Excel by double-clicking the icon or file name for the workbook that you are trying to open.
5. If the problem persists, repeat steps 1-4, except select a different add-in in step 3.
6. If the problem persists after you clear all the COM Add-ins, repeat steps 1-4, except select Excel Add-Ins in
step 2, and then try each of the Excel add-ins one at a time in step 3.
If Excel loads the file, the add-in you last turned off is causing the problem. If this is the case, we recommend that
you visit the manufacturer's website for the add-in to learn whether an updated version of the add-in is available. If
a newer version of the add-in is not available, or if you dont have to use the add-in, you can leave it turned off.
3 of 5 1/14/2017 8:46 PM
Excel: How to troubleshoot "An error occurred when sending commands ... https://support.microsoft.com/en-ca/kb/3001579
If Excel does not open the file after you turn off all the add-ins, the problem has a different cause.
4. In the list of available options, select the Disable hardware graphics acceleration check box.
5. Click OK.
Note For more information about hardware acceleration, see the following Microsoft Knowledge Base article:
For more information about Office updates, click the following article number to go to the article in the Microsoft
Knowledge Base:
Office Updates
If you still experience this problem after you try all these methods, contact Microsoft Support for additional
troubleshooting help.
4 of 5 1/14/2017 8:46 PM
Excel: How to troubleshoot "An error occurred when sending commands ... https://support.microsoft.com/en-ca/kb/3001579
For more information about this problem and for additional troubleshooting steps, see the following Microsoft
Knowledge Base articles:
2616247 Why does "An error occurred when sending commands to the program" appear when opening Excel
2010 files? (Easy Fix Article)
2994633 Excel: How to Troubleshoot Excel opening blank when you double-click a file icon or file name
Applies to
Microsoft Excel 2013, Microsoft Excel 2010, Microsoft Office Excel 2007
Keywords:
kbsurveynew kbprb kbexpertiseinter KB3001579
English (Canada)
5 of 5 1/14/2017 8:46 PM