[Fix] “There was a Problem Sending the Command to the Program” Error Message in Windows

Since a few days I was facing this strange problem. I was trying to open a Microsoft Excel 2013 file (.xlsx) in Windows 8.1 but whenever I tried to open it, I received following error message:

There was a problem sending the command to the program.

There_Was_Problem_Sending_Command_To_Program.png

Advertisement

There was no problem in the file. Also the error message was coming only once. After clicking on the OK button and trying to open the file again, it opened without any problem. It was happening each time I started my computer.

I searched and found various solutions for this problem. So today in this tutorial, I’m going to share all possible solutions to fix this irritating issue. I hope it’ll come handy for some people.

PROBLEM DESCRIPTION:

When you try to open a Microsoft Office file such as a Word document, Excel spreadsheet, Access database file, etc, you receive following error messages:

There was a problem sending the command to the program.

OR

Windows cannot find the file, Make sure you typed the name correctly, and then try again.

OR

Advertisement

Cannot find the file (or one of its components). Make sure the path and filename are correct and that all required libraries are available.

After getting the error message, following things might happen:

CASE 1: The error message is shown only once and you’ll be able to open the file in second attempt.

CASE 2: The error message is shown each time you try to open the file.

PROBLEM REASON:

According to Microsoft KB article, this problem occurs due to Dynamic Data Exchange (DDE) feature. DDE is a type of communication protocols which is used by Windows to open certain filetypes which require this protocol for communication between source and target programs.

DDE mechanism is used to prevent unnecessary opening of multiple instances of a program if one instance of that program is already running in background. So basically DDE helps Windows in saving computer resources so that you get better performance from your computer.

Now lets talk about our problem! The above mentioned error message appears when Windows sends DDE command to MS Office application but Windows fails to connect with the application, thus it shows the error message in return.

PROBLEM SOLUTION:

We talked about 2 cases above! If CASE 1 is applicable to you i.e. you receive the error message only once and then you are able to open the file, you can ignore this problem. Nothing bad is going to happen with your computer.

But if CASE 2 is applicable to you and you are not able to open the file, then you can try following solutions:

SOLUTION 1:

1. Open the Microsoft Office program and open its Options window. Click on Office ORB or FILE menu present in the ribbon and then click on Options.

2. Now go to Advanced tab and scroll down to bottom. You’ll find “Ignore other applications that use Dynamic Data Exchange (DDE)” option present in General section.

Ignore_Dynamic_Data_Exchange_DDE_Option.png

3. Make sure its unchecked. If its enabled in your system, disable it by unchecking the checkbox.

4. Apply changes and restart Office program. It should fix the problem.

PS: If the option is not enabled, first enable the option and then restart the Office program. Now again disable the option and then again restart the Office program. It should fix the problem.

SOLUTION 2:

If the above mentioned solution doesn’t work for you, try following method. Basically we are going to re-associate Office program as default application to open the filetype:

1. Right-click on the Office file and select “Open with” option.

Microsoft_Excel_Spreadsheet_Open_With_Option.png

2. If you are using Windows 7 or earlier Windows versions, click on Browse button.

If you are using Windows 8 or later, click on More Options link and then click on “Look for another app on this PC” option.

3. Now go to “C:\Program Files\Microsoft Office\Office…” folder in Browse dialog box and select the correct EXE file. For example, if you are trying to open .xlsx file, select EXCEL.EXE file. If you are trying to open .docx file, select WINWORD.EXE file.

Make sure “Always use this application for this file type” or similar option is enabled in Open with window.

4. That’s it. It should fix the problem.

SOLUTION 3:

Sometimes this error message occurs when “Run as administrator” option is enabled for the program. You can fix it using following steps:

1. Open Start Menu or Start Screen and look for the Office program shortcut which is causing this problem such as Word, Excel, etc.

2. Once you find the shortcut, right-click on it and select Properties option.

PS: If you can’t find the Properties option, first select “Open file location” option from the context menu. It’ll open a new window. Now again right-click on the Office program shortcut present in the new window and now you’ll get Properties option.

3. Now go to Compatibility tab and uncheck/disable all given options specially “Run this program as administrator“.

Program_Shortcut_Compatibility_Settings.png

4. Apply changes and it should solve the problem.

SOLUTION 4:

You can also try to delete “Data” key from Registry to fix this issue. This key stores basic settings related to window size, position and toolbars. If you delete the key, it’ll reappear as soon as you launch Office program. So there is no harm in deleting this key from Registry.

To delete the key, follow these simple steps:

1. Press WIN+R keys together to launch RUN dialog box. Now type regedit in RUN and press Enter. It’ll open Registry Editor.

2. Now go to following key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office

3. Under this key, you’ll find sub-keys with the name 10.0, 11.0, 12.0, etc depending upon which Office suite version is installed in your computer.

Expand the 10.0 or other number key and you’ll see keys with the name Word, Excel, Access, etc.

4. Expand the key associated to the program which is causing problems. For example, if Microsoft Word is causing problems, expand Word key and you’ll see Data key under it.

5. Select Data key and press Delete key to delete it.

That’s it. Re-launch Office program and now it should work without any problem.

SOLUTION 5:

You can also try to repair Microsoft Office suite with the help of following steps:

1. Open Control Panel and click on Programs and Features icon.

2. Now click on Microsoft Office entry present in the list and click on “Change” button.

3. Now select “Repair” option and click on “Continue” button.

It’ll repair Microsoft Office files and settings and it should fix the problem.

SOLUTION 6:

A few readers have reported that a 3rd party software “AVG PC TuneUp” can also cause this issue. So if you are also facing this problem and you have “AVG PC TuneUp” software installed in your computer, try to uninstall it. It may also fix the issue.

According to our reader “David 963”, AVG PC Tune-up disabled Microsoft Office from starting until the the program started and therefore would not open an individual worksheet or document until the actual program was opened. He didn’t uninstall AVG PC TuneUp but he opened the program and went to the “Optimize” tab and clicked “Disable Programs” option. Then he enabled Microsoft Office suite.

According to our reader “NELU”, disabling Defense+security level in Comodo Antivirus fixed this issue.

SOLUTION 7: (shared by Phil)

1. Press WIN+R keys together to launch RUN dialog box. Now type regedit in RUN and press Enter. It’ll open Registry Editor.

2. Now go to following keys one by one:

HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command

3. In right-side pane, the value of (Default) would be set to something like following:

C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /dde

You need to replace /dde present at the end of the string with /e “%1”

Close Registry Editor and it should fix the issue.

SOLUTION 8: (shared by Leslie)

1. Press WIN+R keys together to launch RUN dialog box. Now type regedit in RUN and press Enter. It’ll open Registry Editor.

2. Now go to following keys one by one:

HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\
HKEY_CLASSES_ROOT\Word.DocumentMacroEnabled.12\shell\Open\

3. Under Open key, you’ll find ddexec sub-key. Delete ddexec key.

Close Registry Editor and it should fix the issue.

SOLUTION 9: (shared by Peter)

1. Press WIN+R keys together to launch RUN dialog box. Now type regedit in RUN and press Enter. It’ll open Registry Editor.

2. Now go to following key:

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options

NOTE: The 16.0 key name may be differ like 10.0, 11.0, 12.0, etc depending upon which Office suite version is installed in your computer.

3. In right-side pane, change the value of DDEAllowed to 1

Close Registry Editor and it should fix the issue.

SOLUTION 10: (shared by CMECb)

Disabling protected view may also fix this problem. Check out following tutorial to turn off protected view:

How to Disable Protected View in Microsoft Office While Opening Email Attachments or Downloaded Files?

Published in: Microsoft Office, Troubleshooting Guides, Windows 7, Windows 8, Windows Vista, Windows XP

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. Hi,

    I was dealing with this annoying issue for one of the customer (excel 2016) tried many solutions & finally SOLUTION 9: (shared by Peter) helped.

    Thanks Peter 🙂

  2. My solution for Office 2016 was to open regedit, go to:

    HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options

    Open the “DDECleaned” key and change that to ‘0’

    I also set the key DDEAllowed to 1 but that did not stop the message from appearing

  3. MS must be aware of this issue. But as with every issue I encounter, they never fix it. The fact is that users should not have to know anything about this. It is a huge show-stopping bug.

    Just spent over an hour trying to get excel to open a csv file despite having done it every day of my life without any issues. Was even about to get OpenOffice even though it is no where near as good.

  4. System: Win 10 Home, MS Office 2010 Pro Plus
    My Issue: Presumably after applying various uncontrollable (! Win 10) “updates”, Excel started to open the 2nd and subsequent files in separate windows (ie. separate instances of Excel), when opening files from the Win Explorer, instead of opening them as sub-windows in the same main program instance.
    All my other MS Office 2010 Pro applications still behaved, ie. were aware of all open files via “View-Switch Windows”.

    Tried (almost) all the above and some more from other websites.
    What appears to be my crucial fix was SOLUTION 7:
    Open regedit as admin (otherwise you won’t be able to change HKCR values), then replace the EXCEL.EXE /dde with /e “%1” in
    HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command {Excel ’97 formats, e.g. *.xls}
    HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command {for Excel 2007, 2010,2013 etc file formats, e.g. *.xlsx}
    …\Excel.SheetBinaryMacroEnabled.12
    …\Excel.SheetMacroEnabled.12
    Etc. per your Office version.

    I also added a previously missing value
    DDEAllowed (DWORD) set to 1
    in [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Excel\Options]
    per SOLUTION 9 above, but I didn’t test it separately before I applied solution 7 in the same session, so you might want to apply just # 7 first.

    THANKS, everybody, for finally relieving my weeks of pain from banging my head against the wall over MS’s typical inability to fix what they accidentally broke in a timely fashion…

  5. System: Windows 7 Pro. MS office Enterprise 2007
    My Case was 2
    My solution was a combo of solutions 5 and 1. Did 5 first. This took care of Access and Word.
    After reboot did 1 for Excel. All back to normal.

    Thanks a bunch.

  6. Solution 1 (ignore other applications that use DDE) solved this problem, but now everything opens as subwindows of the same window instead of opening in separate windows. This is very irritating. I don’t have administrator privileges on this computer, so can’t change the registry or repair microsoft offce (solutions 4 – 9). Does anyone have a solution that will still let me open files in separate windows and does not require administrator privileges? (manually opening a new instance of excel, then using “file – open” for every single file is not an acceptable solution)

  7. Thank you Jazzman. I was running out of the list to try,having the Word Doc not execute from the desktop but yes from inside an old version of Word. When I ran compatibility and upgraded the version of the operating system, having changed from 7 to to, voila! It worked. Thanks so much. It has been driving me c.zy for over a year. Wow, back to normal…. Beautiful!

  8. Thanks Perfect solution
    My problem Resole

    SOLUTION 1:

    1. Open the Microsoft Office program and open its Options window. Click on Office ORB or FILE menu present in the ribbon and then click on Options.

    2. Now go to Advanced tab and scroll down to bottom. You’ll find “Ignore other applications that use Dynamic Data Exchange (DDE)” option present in General section.

  9. Solution 10, note #2 worked for me! I added my local drives to the trusted location list, then checked the ignore box for the DDE in Excel. Now I can open files from my local drive in multiple instances of Excel, and I don’t get the “Problem opening file” error when I open files from Windows Explorer.

    Thanks!

  10. I had been having this problem with Excel 2007 for awhile. So glad I found your helpful advice. Solution #1, ignoring other applications that use the DDE worked for me.

    Thanks for taking the time to post such a detailed help.

  11. I am getting the following error in MOSS 2007 site

    A DDE error has occurred, and a description of the error cannot be displayed because it is too long. If the filename or path is long, try renaming the file or copying it to a different folder.

    I have checked and the path has less than 200 characters.Please help.

  12. Thanks for the great tips, unfortunately, none of the solutions worked for me. I realized there was still a version of office 2007 installed, removing that and various other related older office installs did the trick for me! Thanks,

  13. Excellent – this issue has been bugging me for the past 3 days – looks like a network update messed up my excel settings meaning I was having to save outlook attachments, then fire up excel and open from the saved place. Now back to opening on clicking the link. Thanks very much.

  14. It was Solution..6>>>”AVG PC TuneUp”

    But..

    When I opened the “optimization function” >and “disable program” I found MS office is already enabled, so when I tried to uninstall the “AVG PC TuneUp” it shows me that the MS office is DISABLED !!, so I just disabled the MS office then enabled it, it worked fine.

    I just forgot that I used to disable the less used program as it was long time ago.

    Thanks a lot for the variety solutions. very good work.

  15. Oh my gosh! I thought I had tried everything, then tried again, found your site, and the answer to my many hours of finding a solution. I had tried all the avenues except changing the compatibility to win 7 (currently on win 10 1809 all new system). Someone had suggested using the terms “there was a problem sending the command to the program” to search for a solution and this is where your site came in. I had trouble with double clicking an excel spreadsheet and having it open in Excel, it just wouldn’t load. My last shot was to reinstall Office 2010 but this is amazing. Thanks for this.

  16. Thanks VG. I installed Office 2013 on a Win 7 machine. This problem appeared only with Excel files. Solution 3 worked. I removed “Run as Administrator” for Excel.exe and the problem disappeared. Thanks again.

  17. Absolutely amazing collection of cures…but none worked for me. Tried twice!
    #5 – Repair would not run, says, “Configuration did not complete successfully.” Maybe I can search it. I’m afraid a new Office (’10 or ’16) won’t work, either.

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.