Fix Excel "problem sending the command to the program" on double-click

Excel throws this when a second instance can't talk to the first. Usually it's an unchecked DDE box, a file block, or a busted add-in.

Quick answer: Open Excel, go to File > Options > Advanced > General, and tick "Ignore other applications that use Dynamic Data Exchange (DDE)." That fixes it about 80% of the time. If it doesn't, keep reading.

I know this error is infuriating. You double-click an .xlsx, Excel flashes open for half a second, then a dialog pops up saying "There was a problem sending the command to the program." The file never opens. Double-click again — same thing. Drag the file onto an already-open Excel window and it works fine. That's the tell.

What's happening: Windows uses DDE (Dynamic Data Exchange) to hand your file path to Excel. Excel is almost certainly already running invisibly — sitting there as a background process (you'll see it in Task Manager) — and the handoff between the new instance and the old one fails. It's not a corrupt file. It's not your spreadsheet. It's the communication channel between Windows and Excel, and it breaks when something else grabs that channel first, when Excel's registered itself twice, or when an add-in is intercepting the call.

Fix 1: Turn off DDE handoff (the real fix)

  1. Open Excel directly — Start menu, not by double-clicking a file.
  2. Go to File > Options > Advanced.
  3. Scroll way down to the General section.
  4. Check Ignore other applications that use Dynamic Data Exchange (DDE).
  5. Click OK and close Excel completely.
  6. Kill any lingering Excel processes: open Task Manager (Ctrl+Shift+Esc), find EXCEL.EXE under Background processes, End Task.
  7. Double-click your file. It should open instantly.

Why this works: instead of Windows whispering the filename to an already-running Excel, it just launches Excel with the filename as a command-line argument. No handshake, no failure point. The only downside is that double-clicking a second file opens a second Excel window rather than reusing the first — most people prefer that anyway.

Fix 2: Check for blocked files (common on downloads)

If this only happens with files from email or the web, Windows has flagged them. Right-click the file > Properties. If you see an Unblock checkbox at the bottom of the General tab, tick it and click OK.

To stop this from happening to every future download in one folder:

Get-ChildItem -Path "C:\Users\You\Downloads" -Recurse | Unblock-File

Run that in PowerShell. It walks the folder and removes the Zone.Identifier alternate data stream that marks files as "from the internet."

Fix 3: Repair the file association

If DDE off didn't help, your .xlsx association is probably pointing at something odd — sometimes at Excel's launcher stub instead of EXCEL.EXE. Run this from an elevated Command Prompt:

assoc .xlsx=Excel.Sheet.12
ftype Excel.Sheet.12="C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE" /dde

Adjust the path if you're on Office 2016/2019 volume install (C:\Program Files (x86)\Microsoft Office\Office16) or a 32-bit Windows install. You can verify the current path with:

ftype | findstr Excel

If the ftype output shows a path that doesn't exist, that's your culprit. Fix it and the error disappears.

Fix 4: Disable the offending add-in

Some add-ins — I've seen this with older SAP BusinessObjects plugins, certain Bloomberg Excel tools, and a handful of PDF exporters — hook into Excel's startup and intercept DDE messages. If you recently installed one and the error appeared right after, that's your cause.

  1. File > Options > Add-ins.
  2. At the bottom, next to Manage:, pick COM Add-ins and click Go.
  3. Uncheck everything. Click OK.
  4. Close Excel, kill the process, and try double-clicking again.
  5. If it works, re-enable them one at a time until the error comes back. That one's the problem — update it or drop it.

Fix 5: Office repair

If nothing above worked, run a quick repair. Settings > Apps > Installed apps > Microsoft 365 (or Office) > Modify > Quick Repair. Takes five minutes. If that doesn't fix it, go back and choose Online Repair — slower, but it resets the registration entries that DDE relies on.

Prevention tip

Don't leave Excel running in the background all day. That invisible instance is exactly what DDE tries to talk to, and it's what gets into a bad state. Close Excel properly with the X in the top-right rather than Alt+F4 with unsaved dialogs open, and check Task Manager once a week for orphaned EXCEL.EXE processes. If you see one with no visible window, end it. That alone prevents this error for most people.

One more thing: if you're on a corporate machine managed by IT, Fix 1's checkbox might be greyed out by group policy. In that case, the file association path (Fix 3) is your move — run it in an elevated prompt and you may need admin rights to write the ftype entry.

Nine times out of ten, the DDE checkbox is the whole fix. Two minutes, done. The rest of this list exists for the tenth time, and you'll know it's that one because the checkbox will already be ticked.

Related Errors in Software – Microsoft Office
Fix Word's 'problem sending the command' error fast Fix Premiere Pro Media Encoder Not Responding Error 0x426-0x0 or 'This file is locked for editing by another user' Word Can't Open This Document: Locked by Another User Outlook Search Broken After Windows Update? Fix It

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.