Excel: How to troubleshoot "An error occurred when sending commands to the program" error messages

Symptoms

In Microsoft Excel, one of the following conditions is true:
  • 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 take one of the following actions:
    • Activate a button that is created by 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
In this scenario, you receive the following error message:

An error occurred when sending commands to the program

Cause

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.

Resolution

To resolve this problem, try the following methods, as appropriate, in the given order.
Method 1: Ignore DDE
Method 2: Repair User Experience Virtualization (UE-V)
Method 3: Reset file associations
Method 4: Repair Office
Method 5: Turn off add-ins
Method 6: Disable hardware acceleration
Method 7: Verify or install the latest updates
If you still experience this problem after you try all these methods, contact Microsoft Support for additional troubleshooting help.
Egenskaper

Artikel-id: 3001579 – senaste granskning 10 nov. 2016 – revision: 1

Microsoft Excel 2013, Microsoft Excel 2010, Microsoft Office Excel 2007, Excel 2016

Feedback