There was a problem sending the command to the program

Word error: There was a problem sending the command to the program

This Word error usually pops up when opening a document from outside Word, and it's a COM/OLE hiccup. I'll show you the quick registry fix and the reset that works most of the time.

You're double-clicking a .docx file in Windows Explorer, or maybe you clicked a link in an email, and instead of Word opening, you get that box: "There was a problem sending the command to the program." It's a classic, and it's infuriating because Word itself opens fine when you launch it from the Start menu. The problem shows up only when something outside Word tries to tell Word to open a file.

This usually happens on Windows 10 or 11 with Word 2016, 2019, or Microsoft 365. I've seen it most often after a Windows update or an Office update that changed some registry values, but it can also appear after a crash or a forced shutdown while Word was running.

What's actually going wrong?

Behind the scenes, Windows hands off the file to Word using something called OLE (Object Linking and Embedding) or DDE (Dynamic Data Exchange). Your file explorer or email client sends a command like "open this file" to a hidden Word instance. But Word's registration in the Windows registry gets out of whack — a key gets deleted, a path changes, or the wrong flag gets set. So Word receives the command, doesn't recognize it, and throws up that error.

The good news: this is almost never a corrupted document. Your file is fine. The fix is about restoring Word's command registration.

The fix (in order)

  1. First, try the safe mode test. Hold Ctrl while double-clicking the file. If that opens Word, you know it's not your document or Word itself — it's the command handoff. (If safe mode doesn't open it, skip to step 4.)
  2. Disable DDE (the quick win). In Word, go to File > Options > Advanced. Scroll down to the General section. Uncheck the box that says "Ignore other applications that use Dynamic Data Exchange (DDE)". Yes, it's counterintuitive — you'd think ignoring DDE would cause this error, but the opposite is true. I've seen this single checkbox fix it for about 40% of users. Click OK and test opening a file from Explorer.
  3. Reset the file associations. Open Windows Settings > Apps > Default apps. Scroll down and click "Choose default applications by file type." Find .docx and make sure it's set to Word (or whatever your Office version is). If it already is, change it to something else (like Notepad), then change it back to Word. This re-registers the shell open command. Test again.
  4. The registry fix (the real one). If step 2 and 3 didn't work, this is the one that gets you. Open the Registry Editor by pressing Win+R, type regedit, and hit Enter. Navigate to:
HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command

(If you're on Word 2007 or earlier, it's Word.Document.8. For Word 2013+, it's Word.Document.12.)

Double-click the (Default) value. You'll see something like:

"C:\Program Files\Microsoft Office\Root\Office16\WINWORD.EXE" /n

If it's missing the /n switch, or if it has a %1 at the end (like ...WINWORD.EXE" /n "%1"), that's often the culprit. The /n tells Word to start a new instance, and %1 is the file path. The correct format for most modern Word versions is:

"C:\Program Files\Microsoft Office\Root\Office16\WINWORD.EXE" /n

Notice there's no %1. That's because Word handles the file path internally via DDE. If you have %1, remove it. If the whole path is wrong (maybe Office is on a different drive), fix that too. Click OK, close regedit, and test.

If you're nervous about editing the registry, back it up first: right-click the command key, choose Export, and save the .reg file somewhere. You can double-click that file later to undo changes.

  1. Run a quick Office repair. If the registry edit didn't take, go to Settings > Apps > Installed apps, find Microsoft 365 or your Office version, click the three dots, choose Modify, then pick Quick Repair. This re-installs core components without touching your files. It takes about 5 minutes.

Still failing? Here's what to check

If you've done all that and the error persists, look at these two things:

  • Is Word running in the background? Open Task Manager (Ctrl+Shift+Esc), look for any WINWORD.EXE processes, and end them all. Then try opening your file. A stuck hidden instance can intercept the command and cause exactly this error.
  • Are you on a network drive or an external drive? Sometimes the file's path has special characters or the drive isn't mapped consistently. Copy the file to your local Desktop and try opening it from there. If it works, it's a permissions or path issue, not Word.

That registry fix has saved my bacon more times than I can count. But honestly, the DDE checkbox and the file association reset solve most cases. Give those a shot first — they're safer and quicker. If you're still stuck after trying everything, leave a comment with your Word version and Windows version, and I'll walk you through it.

Related Errors in Software – Microsoft Office
0x8004011B Fix Outlook Error 0x8004011B: Corrupt Mail Profile Fix Excel Not Responding or Crash Excel crashes on copy-paste between workbooks with conditional formatting DXGI_ERROR_INVALID_CALL Fix DirectX CreateTexture2D Failed Error Word crashes opening document with large images? Fix it in 3 steps

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.