The Error
You double-click an .xlsx or .xls file in Windows Explorer and get this popup instead of the file opening:
There was a problem sending the command to the program.
Excel might launch and leave you staring at a blank screen, or it might not open at all. The root cause is DDE (Dynamic Data Exchange) β Windows sends a DDE signal to any already-running Excel instance, telling it to load the file you clicked. When that signal gets rejected or times out, you see this error instead.
Why This Happens
The error traces back to one of three places:
- Excel's "Ignore other applications that use DDE" option is turned on β Excel is actively rejecting the open command from Explorer.
- The file association for
.xlsxin the registry has gone stale β pointing to the wrong executable path or missing the/ddeargument entirely. - An antivirus plugin or Office add-in is sitting in the middle of the DDE handshake and blocking it.
Fix 1: Uncheck "Ignore DDE" in Excel Options (Most Common)
This resolves the issue in ~80% of cases.
- Open Excel (create a blank workbook if needed).
- Go to File β Options β Advanced.
- Scroll down to the General section.
- Find "Ignore other applications that use Dynamic Data Exchange (DDE)".
- Make sure the checkbox is unchecked.
- Click OK and restart Excel.
Now double-click your file from Explorer β it should open directly.
Fix 2: Repair the File Association via Settings
Still seeing the error? The .xlsx file type association may be broken.
- Press Win + I β Apps β Default Apps.
- Scroll down and click "Choose defaults by file type".
- Find
.xlsxand set the default to Microsoft Excel. - Repeat for
.xls,.xlsm,.xlsbif needed.
Alternatively, right-click any .xlsx file β Open with β Choose another app β Microsoft Excel β Always use this app.
Fix 3: Fix the Registry DDE Command (Advanced)
File association looks correct but the error persists? The DDE command string in the registry may be corrupted or incomplete.
Back up the registry first:
reg export HKCR\Excel.Sheet.12 C:\backup_excel_sheet12.reg
Then open Registry Editor (Win + R β regedit) and navigate to:
HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open\ddeexec
The default value should be:
[open("%1")]
Check also:
HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open\command
The default value should look like:
"C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE" /dde
If the path is wrong or the /dde flag is missing, correct it to match your actual Excel installation path. Find the correct path with:
where excel
Or check in PowerShell:
(Get-Command excel).Source
To set the registry values via command line (run as Administrator):
reg add "HKCR\Excel.Sheet.12\shell\Open\command" /ve /t REG_SZ /d "\"C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE\" /dde" /f
reg add "HKCR\Excel.Sheet.12\shell\Open\ddeexec" /ve /t REG_SZ /d "[open(\"%1\")]" /f
Fix 4: Repair Microsoft Office
Registry looks fine but the error won't go away? Try a Quick Repair β it resets all file associations and COM registrations in one shot.
- Press Win + R β
appwiz.cplβ Enter. - Find Microsoft 365 (or Office 2019/2021) in the list.
- Click Change β Quick Repair β Repair.
- Wait for it to finish, then restart.
Quick Repair not enough? Run Online Repair instead β it replaces more components but needs an internet connection.
Fix 5: Disable Add-ins Temporarily
Certain add-ins β PDF printer drivers, antivirus Excel plugins β can hook into Excel's startup sequence and silently break the DDE channel.
Run Excel in safe mode to find out:
excel /safe
Files opening fine from Explorer in safe mode? An add-in is the problem. Go to File β Options β Add-ins β Manage: COM Add-ins β Go and disable them one by one until the error stops.
Verify the Fix
- Close all Excel instances completely (check Task Manager β kill any lingering
EXCEL.EXEprocesses). - Double-click an
.xlsxfile from Windows Explorer. - Excel should launch and open the file directly with no error dialog.
- Try with Excel already open β double-click a second file. It should open in the same Excel window, not trigger an error.
Quick Reference: Which Fix to Try First
- Just started happening after an Office update β Fix 1 (DDE setting got reset)
- Happens only for
.xlsxbut not.xlsβ Fix 2 (file association per extension) - File association shows Excel but still fails β Fix 3 (registry DDE command broken)
- Nothing works β Fix 4 (Office repair)
- Works in safe mode β Fix 5 (add-in conflict)

