How to Fix “There Was a Problem Sending a Command to the Program” in Windows

·
5 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

“There was a problem sending a command to the program” appears when Windows tries to open a file, usually an Excel spreadsheet or Word document, and the app fails to receive the open instruction correctly. The most common cause is a broken Dynamic Data Exchange (DDE) setting in Office, a bad file association, or a misbehaving add-in.

Full Windows error dialog showing "There was a problem sending a command to the program" message with OK button visible

Fix #1: Disable “Ignore DDE” in Excel

The DDE setting in Excel is the most common trigger for this error. When “Ignore other applications that use Dynamic Data Exchange (DDE)” is checked, Excel ignores the open command Windows sends it, which is exactly what causes this error.

  1. Open Excel. If it won’t open normally, launch it from the Start menu directly (not by double-clicking a file).
  2. Click File > Options.
  3. Select Advanced from the left panel.
  4. Scroll down to the General section.
  5. Find the checkbox labeled “Ignore other applications that use Dynamic Data Exchange (DDE)” and make sure it is unchecked.
  6. Click OK, close Excel completely, then try opening the file again.
Excel Options > Advanced > General section with "Ignore other applications that use Dynamic Data Exchange (DDE)" checkbox visible and unchecked

If the box was already unchecked, try the opposite: check it, click OK, restart Excel, then go back and uncheck it again. This forces Excel to reset the DDE state.

Fix #2: Reset the file association for Excel or Word files

If Windows is routing the open command to the wrong app, or no app at all, you’ll get this error even if Office is installed correctly. Resetting the file association forces Windows to route .xlsx, .xls, and .docx files back to the right program.

  1. Press Windows + I to open Settings.
  2. Go to Apps > Default apps.
  3. Scroll down and click Microsoft Excel (or Microsoft Word, depending on which app is throwing the error).
  4. Review the file types listed (such as .xlsx, .xls, .csv for Excel or .docx, .doc for Word). If any show a different app or “Choose a default”, click that entry and select the correct Microsoft Office app.
  5. Close Settings and try opening the file again.
Windows 11 Settings > Apps > Default apps > Microsoft Excel showing list of file type associations including .xlsx and .xls

Fix #3: Disable Office add-ins

A COM add-in or Excel add-in that loads at startup can intercept or block the DDE command before the file opens. Disabling them temporarily tells you whether an add-in is the culprit.

  1. Open Excel or Word directly from the Start menu.
  2. Click File > Options > Add-ins.
  3. At the bottom of the screen, set the Manage dropdown to COM Add-ins and click Go.
  4. Uncheck all add-ins and click OK.
  5. Repeat steps 3–4, this time selecting Excel Add-ins (or Word Add-ins) from the dropdown.
  6. Close and reopen the app, then try opening the problem file.
Excel Options > Add-ins > COM Add-ins dialog with all add-ins unchecked

If the error goes away, re-enable add-ins one at a time to identify which one is causing the problem.

Fix #4: Use Open and Repair (if only one file is affected)

If the error only happens with a specific file, the file itself may be damaged. Excel’s built-in Open and Repair feature can recover it without needing a third-party tool.

  1. Open Excel from the Start menu.
  2. Click File > Open > Browse.
  3. Navigate to the problem file and click it once to select it (don’t double-click).
  4. Click the small dropdown arrow next to the Open button.
  5. Select Open and Repair.
  6. Click Repair when prompted.
Excel Open dialog with a file selected and the dropdown arrow next to the Open button expanded, showing "Open and Repair" option

If repair doesn’t recover the file fully, choose Extract Data on the second attempt to salvage the contents.

Fix #5: Repair Microsoft 365 / Office

If the error affects multiple file types or happens consistently regardless of which file you open, the Office installation itself may be damaged. A Quick Repair takes a few minutes and fixes most installation-level problems without reinstalling.

  1. Press Windows + I to open Settings.
  2. Go to Apps > Installed apps.
  3. Find Microsoft 365 or Microsoft Office in the list, click the three-dot menu next to it, and select Modify.
  4. Select Quick Repair and click Repair. Wait for it to finish.
  5. If the error persists after Quick Repair, repeat the steps and choose Online Repair instead. This replaces more files but requires an internet connection and takes longer.
  6. Restart your PC after the repair completes, then test the file again.
Windows 11 Settings > Apps > Installed apps with Microsoft 365 selected and the Modify dialog open showing Quick Repair and Online Repair options

When the fixes don’t work

If all five fixes above fail, the problem may be tied to how a specific email client or third-party app is handing off file links to Windows. Check that your default browser and mail app are set correctly in Settings > Apps > Default apps, as a misconfigured default mail app can break the entire file-launch chain. If the error started after a Windows update or a new app install, use System Restore to roll back to a point before the problem began.

Conclusion

Fix #1 (disabling the DDE setting in Excel) solves this for the majority of people, so it’s worth trying that before anything else. If you’re dealing with a single broken file rather than a system-wide problem, jump straight to Fix #4 (Open and Repair). Persistent errors across multiple Office apps usually mean the installation needs a repair via Fix #5.