"An error occurred when sending commands to the program" error in Excel

Applies to: Excel 2013Excel 2010Microsoft Office Excel 2007 More

Symptom


You receive the following error message in Microsoft Excel. This error indicates that some process that is running inside Excel will not let Excel close.

An error occurred when sending commands to the program

Resolution


To resolve this problem, try the following methods, as appropriate, in the given order.

 

Method 1: Ignore DDE

To correct this setting, follow these steps:
  1. Select File > Options.
  2. Select Advanced, scroll down to the General section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the General area.
  3. Select OK.
This problem may occur if the Ignore other applications that use Dynamic Data Exchange (DDE) check box in Excel options is selected. 

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 DDE message that is sent to Excel by Windows Explorer is ignored, and Excel does not open the workbook that you double-clicked.

Note For more information about how to turn off DDE, see the following Microsoft Knowledge Base article:

 If these steps do not resolve the problem, go to Method 2.

 

Method 2: Repair User Experience Virtualization (UE-V)

If you are running Update User Experience Virtualization (UE-V), install Hotfix Package 1 for Microsoft User Experience Virtualization 2.0 (KB2927019).

If you are not sure whether you are running UE-V, examine the program list in the Programs and Features item in Control Panel. An entry for “Company Settings Center” indicates that you are running UE-V.

If these steps do not resolve the problem, go to Method 3.

 

Method 3: Reset file associations

To check whether the file associations in the system are performing correctly, reset the Excel file associations to their default settings. To do this, follow the steps for your operating system.

 

If these steps do not resolve the problem, go to Method 4.

 

Method 4: Repair Office

Try to repair your Office programs. To do this, follow the steps for your installation type and operating system.

For an Office 365 Click-to-Run installation

For an Office 2016, 2013, Office 2010, or Office 2007 installation

To repair Office 2013, Office 2010, or Office 2007, follow the steps in the following Office website topic:

 If these steps do not resolve the problem, go to Method 5.
 

Method 5: Turn off add-ins

Excel and COM add-in programs can also cause this problem. These two kinds of add-ins are located in different folders. For testing, disable and isolate the conflict by turning off each add-in one at a time. To do this, follow these steps:
  1. On the File menu, select Options > Add-Ins.
  2. In the Manage list at the bottom of the screen, select COM Add-Ins > Go.
  3. Clear one of the add-ins in the list, and then select 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 don’t have to use the add-in, you can leave it turned off.

If Excel does not open the file after you turn off all the add-ins, the problem has a different cause.

If these steps do not resolve the problem, go to Method 6.
 

Method 6: Disable hardware acceleration

To work around this problem, disable hardware acceleration until a fix is released by your video card manufacturer. Make sure to check regularly for updates to your video card driver.

To disable hardware acceleration, follow these steps:
  1. Start any Office 2013 program.
  2. On the File tab, select Options.
  3. In the Options dialog box, select Advanced.
  4. In the list of available options, select the Disable hardware graphics acceleration check box.

    The following screen shot shows this option in Excel.

    The following screen shot shows this option in Excel.
     
  5. Select OK.
Note For more information about hardware acceleration, see Performance and display issues in Office 2013 client applications (KB2768648).

If these steps do not resolve the problem, go to Method 7.
 

Method 7: Verify or install the latest updates

You may have to set Windows Update to automatically download and install recommended updates. Installing any important, recommended, and optional updates can frequently correct problems by replacing out-of-date files and fixing vulnerabilities.

For more information about Office updates, click the following article number to go to the article in the Microsoft Knowledge Base:
 
Microsoft Support

More Information


There are many possible reasons that might lead to this error.

  • The Excel workbook tries to access data from another application that is still active.
  • Too many Excel add-ins have been added to the program, or one of the add-ins is corrupted.
  • You might have taken one of the following actions:
    • Use a third-party add-in or application
    • Try to open an embedded object
    • Save or open a file
    • Try to use the Send as Attachment option
    • Call another application from the Excel workbook

For more information about this problem and for additional troubleshooting steps, see the following Microsoft Knowledge Base articles: