How to fix Microsoft Excel 'There was a problem sending the command to the program' error when opening files
Summary
This guide helps you troubleshoot and resolve: How to fix Microsoft Excel 'There was a problem sending the command to the program' error when opening files. Follow the steps below to fix the issue.
Common Causes
The "There was a problem sending the command to the program" error typically appears in Microsoft Excel when opening files, particularly .xlsx, .xls, or .csv documents. This issue is usually caused by conflicts with Excel add-ins, Dynamic Data Exchange (DDE) settings, or problems with your Office installation. The steps below will walk you through resolving the error in order from quickest fix to more advanced solutions.
Quick Fix Steps
Before diving into detailed troubleshooting, try these common solutions:
- Restart Excel completely and try opening the file again.
- Open Excel in Safe Mode by pressing
Windows + R, typingexcel /safe, and pressing Enter. If the file opens in Safe Mode, an add-in is likely the cause. - Ensure your version of Office is up to date by going to File > Account > Update Options > Update Now.
Detailed Instructions
Enable the Ignore DDE Option
The Dynamic Data Exchange (DDE) feature is a common trigger for this error. Enabling the option to ignore DDE resolves the issue for most users.
- Open Excel and click File > Options.
- Select Advanced from the left-hand menu.
- Scroll down to the General section.
- Tick the box next to Ignore other applications that use Dynamic Data Exchange (DDE).
- Click OK and restart Excel.
Disable Problematic Add-ins
Faulty or outdated add-ins frequently cause this error, especially COM add-ins and third-party integrations.
- Open Excel and go to File > Options > Add-ins.
- At the bottom of the window, change the Manage dropdown to COM Add-ins and click Go.
- Untick all add-ins in the list and click OK.
- Restart Excel and test opening your file.
- If the file opens successfully, return to the COM Add-ins window and re-enable add-ins one at a time to identify the culprit.
Repeat the process for Excel Add-ins and XML Expansion Packs if the issue persists.
Reset Excel File Associations
Incorrect file associations in Windows can prevent Excel from receiving the correct command when opening files.
- Close Excel completely.
- Right-click the Start button and select Settings > Apps > Default apps.
- Scroll down and click Choose defaults by file type.
- Locate each Excel extension (
.xlsx,.xls,.xlsm,.csv) and ensure Microsoft Excel is selected as the default app. - Try opening your file again.
Check the File Path
Excessively long file paths or paths containing certain special characters can also trigger this error.
- Move the file to a simple location such as
C:\Temp\or your Desktop. - Try opening the file from the new location.
- If successful, save the file with a shorter name and avoid folders with deep nesting.
Repair Your Office Installation
If the above steps have not resolved the error, your Office installation may have corrupted files.
- Close all Office applications.
- Open Control Panel > Programs > Programs and Features.
- Locate Microsoft 365 or Microsoft Office in the list and click it once.
- Click Change at the top of the list.
- Select Online Repair for the most thorough fix, then click Repair.
- Restart your computer once the repair is complete.
Clear the Excel Temp Folder
Corrupted temporary files can interfere with Excel's ability to open documents.
- Close Excel completely.
- Press
Windows + R, type%temp%\Microsoft\Excel, and press Enter. - Select all files in the folder (
Ctrl + A) and delete them. - Restart Excel and try opening your file.
Troubleshooting
The Error Appears Only with Specific Files
If the error occurs with one particular file, the document itself may be corrupted. Try the following:
- Open Excel and use File > Open > Browse rather than double-clicking the file.
- Copy the contents into a new workbook.
- Ask the sender to resend the file or save it again from the original source.
- Try opening the file in Google Sheets or LibreOffice Calc to recover the data.
The Error Appears After a Windows Update
Recent Windows updates occasionally break Office compatibility. Check for:
- Pending Office updates via File > Account > Update Options.
- Known issues on the Microsoft Office support page.
- Optional Windows updates that may need to be rolled back via Settings > Windows Update > Update history.
Using Excel on a Mac
Mac users encountering this error should try:
- Clearing the Excel cache by quitting Excel, then deleting files in
~/Library/Containers/com.microsoft.Excel/Data/Library/Caches/. - Removing Excel from System Settings > Privacy & Security > Full Disk Access, then re-adding it.
- Running Disk Utility > First Aid to check for file system errors.
Still Having Issues?
💻 Open a Ticket