Fix: Problem Sending the Command to the Program

Windows is full of surprises when you encounter error messages such as, “There was a problem sending a command to the program.” This message usually indicates that a window has failed to connect with MS Office Applications (such as Excel, Word, or an Access database, etc.) during the process of sending DDE (Dynamic Data Exchange) commands to these applications. As a result, you are unable to run MS Office Applications.

Sometimes, this error can correct itself, as the error message only pops up once and the applications run on the second or third attempt. However, this does not mean it should be left untreated. Therefore, it needs to be fixed manually, as it may recur.

If you have Microsoft’s Compatibility Viewer, then uninstall it and try to open the Excel file. If it doesn’t work, then repair Microsoft Office from the Programs and Features window, and then check.

Method 1: Disabling the ‘Run program as administrator’ option.

Select ‘Properties’ by right-clicking on the shortcut to the application that is displaying the error message, then choose the ‘Compatibility’ tab.

2015-11-30_204035

Uncheck the ‘Run program as administrator’ box if it’s checked or enabled.

Method 2: Checking the DDE Option in Excel.

Open MS Office Excel and access the Excel Options box from the Office Menu. You can do this by clicking on the Office icon located in the top left corner of the application, and then selecting ‘Advanced’.

Locate and uncheck or disable the option titled ‘Ignore other applications that use Dynamic Data Exchange (DDE)’ under General Options. After applying these changes, please restart the office application.

2015-11-30_204454

If the ‘Ignore other applications that use Dynamic Data Exchange (DDE)’ option is unchecked or disabled, enable the option using the checkbox, then restart the office application. After restart, again uncheck the option and then restart the office application.

Method 3: Change Excel Settings

There are a few settings that you can change to see if it helps. There are a lot of options that you can change but you don’t have to change all of these settings. You can change the settings one-by-one and keep checking if the problem is resolved.

  1. Open Microsoft Excel,
  2. Click File

  1. Please select options.

  1. Select Advanced from the left pane
  2. Uncheck the ‘Ignore other applications that use Dynamic Data Exchange (DDE)’ option. This option should be under ‘General’.
  3. Click ‘Ok’ and check if the problem still persists. If so, continue.

  1. Select Trust Center
  2. Please click on ‘Trust Center Settings.

  1. Select External Content.
  2. Enable both Security settings for Data Connections and Security settings for Workbook Links.
  3. Click OK and check if the problem is solved. If not, then continue

  1. Select Trust Center
  2. Please click on the ‘Trust Center Settings’
  3. Select Macro Settings
  4. Select the option Enable all macros (not recommended; potentially dangerous code can run)
  5. Please check the ‘Trust Access to the VBA Project Object Model’ option.
  6. Click ‘Ok’ and check to see if the problem is resolved. If not, then continue.

  1. Select Trust Center
  2. Click Trust Center Settings
  3. Select ActiveX Settings,
  4. Select the option ‘Enable all controls without restrictions and without prompting’. (Not recommended; potentially dangerous code can run)
  5. Click ‘OK’ and verify whether the problem is resolved. If it is not, please continue.

  1. Select Trust Center
  2. Click Trust Center Settings,
  3. Select Privacy Options
  4. Uncheck the option ‘Check Microsoft Office Documents’ that are from or link to suspicious websites.
  5. Click Ok and check if the problem is solved.

Method 4: Fixing the Registry.

Even if Method 1 didn’t work for you, there is still hope. There is a registry fix that has helped many users. Follow the steps below to address the issue through the registry.

Note: Messing up registry keys can cause serious issues. So, it is advised to make a backup of your registry keys in case something goes wrong. Click here for a step-by-step guide on how to backup and restore your registry.

  1. Open the Run dialog box by pressing Windows + R
  2. Type ‘regedit’ into the box, and then either press ‘Enter’ or click ‘OK’.

  1. Now, navigate to this address: HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open. If you’re unsure how to navigate to this path, please follow the steps provided below.
    1. Locate and double-click HKEY_CLASSES_ROOT from the left pane.
    2. Locate and double-click ‘Excel.Sheet.8’ from the left pane.
    3. Locate the shell in the left pane, and double click it.
    4. Locate ‘Open’ from the left pane and double-click on it.

  1. Right-click the ddeexec folder/key (it should be under ‘Open’) and select ‘Delete’. You can also just rename the ddeexec folder/key if you aren’t comfortable. Simply right-click it, select ‘Rename’, and give it any name you want.

  1. Now, select the command folder or key by left-clicking it once. It should be located under ‘Open.’
  2. Double-click the default string in the right pane.
  3. Replace the /e or /dde part of the value with “%1”. Note: Include the quotes as well.
  4. The Default string’s value should look like this “C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE” “%1”
  5. Click Ok

  1. Double click the command string from the right pane.
  2. Replace the /e or /dde part of the value with “%1”. Note: Include the quotes as well.
  3. The Command string’s value should look like this yh1BV5!!!!4!!!!MKKSkEXCELFiles>Of1RD?I9b9j[2hL]KhO& “%1”
  4. Click ‘OK’.

  1. Now, scroll up just a little bit in the pane and double click Excel.Sheet.12
  2. Repeat steps from 4-13 for Excel.Sheet.12

Once done, check if the issue is resolved or not.

Method 5: Check and Disable Excel Add-ins

Sometimes Excel add-ins may cause this issue. If you recently installed an add-in, or even if it was around the time when this problem started, that could be a possible cause. Even if you don’t recall installing any new add-ins, disabling or uninstalling them from your Excel is worth a try.

  1. Open Excel
  2. Click File

  1. Select Options.

  1. Select the Add-ins from the left pane
  2. Select the Add-in from the list.

  1. In the Manage box, click Excel Add-ins, and then click Go…
  2. In the ‘Add-Ins Available’ box, uncheck the option next to the add-in that you wish to disable. We recommend disabling all the add-ins temporarily to determine whether or not they are the cause of the problem.
  3. Once you’re done, click OK.

  1. Please click OK again.

This should do the job for you. If the problem is resolved then it’s clear that an add-in was causing the issue. You can now follow the above given steps and enable the add-ins one-by-one to determine which add-in was the root of the problem.

Method 6: Disable Dell Data Protection Security Authentication Service,

Note: This method is for Dell users. If you aren’t using a Dell computer then skip this method.

If you have a Dell machine, the issue might be tied to the Dell Data Protection Security Authentication Service. This service, installed via Dell’s Digital Delivery service, primarily provides a security solution and authentication support. The cause behind the issues related to this service is currently unknown. However, many Dell users have resolved their problems by either disabling or uninstalling this service.

The steps to disable the Dell Data Protection Security Authentication Service are given below.

  1. Hold Windows key and press R
  2. Type services.msc and press Enter

  1. Locate the Dell Data Protection Security Authentication Service and double-click on it.

  1. Select ‘Disabled’ from the drop-down menu.
  2. Ensure that the service status is stopped. If it isn’t, then proceed by clicking the ‘Stop’ button in the ‘Service Status’ section.
  3. Click ‘Apply’, then select ‘Ok’.

Check if the issue is resolved. If the problem is gone then you know the culprit behind the issue. You can keep this service disabled without facing any major issues. You can also uninstall this service from the Programs and Features window if you really don’t want the service. On the other hand, if the problem still persists then you can simply turn on the service back again. Just follow the steps from 1-6 above but select the Automatic option in step 4.

Method 7: Disable Hardware Acceleration

The problem might also be caused by your video card. So, disabling this option solves the issue. This isn’t a solution but more of a workaround. So, keep checking for the latest updates from your video card manufacturer because there’s a high likelihood that your card manufacturer will release an update for this issue.

  1. Open Excel
  2. Click on the ‘File’ button.

  1. Select Options

  1. Select Advanced from the left pane
  2. Check the option Disable Hardware Acceleration. This option should be under the Display section
  3. Click ‘OK’.

Once done, this should solve the issue. Keep this option enabled until you see a new update from your video card manufacturer. Then, you should disable this option after updating the video card. If this method does not solve the issue, then there’s no need to keep this option enabled. Simply follow the steps given above and uncheck the ‘Disable Hardware Acceleration’ option in Step 5.

Method 8: Reset Default Programs and File Associations

Sometimes the issue can be caused when Excel isn’t set as the default program to run the .xlsx files. Simply making Excel the default program and resetting the file associations can solve this issue for us.

Follow the steps given below to reset the file associations

  1. Hold the Windows key and press R.
  2. Type ‘Control Panel’ and press ‘Enter’.

  1. Type ‘Default programs’ into the search bar located at the top right corner.
  2. Select the Default Programs option,

  1. Please select ‘Set your default programs’.

  1. Wait a while for the list to populate.
  2. Locate and select Excel.
  3. Please click on ‘Choose defaults for this program.’

  1. Check the ‘Select All’ option.
  2. Click Save

Method 9: Uninstalling the Additional Office Viewer.

This error message may also occur if you have installed Office Viewer in conjunction with Microsoft Office. If this is the case, uninstall it and retest.

ABOUT THE AUTHOR

Kamil Anwar


Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.