Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»4 Quick Ways to Solve “There Was a Problem Sending the Command to the Program”

    4 Quick Ways to Solve “There Was a Problem Sending the Command to the Program”

    Jabin ManandharBy Jabin ManandharJune 23, 2023 Excel 5 Mins Read

    While opening a particular Excel file, you might come across the error “There was a Problem Sending the Command to the Program”. When this happens, the error keeps popping up, and closing its dialog or clicking OK just exits the Excel app without opening the file.

    Nonetheless, you could still open the Excel app without the error. So, instead of directly opening the file, try opening it via the app and see if it works. For this, open a new instance of the Excel app and select File > Open to browse the desired file.

    Similarly, disable the Ignore DDE option in Excel which is known to cause the error in the first place.

    If the error persists, try out other solutions mentioned in the article.

    Disable DDE Option

    Whenever you double-click to open an Excel file, the Windows Explorer first needs to send a DDE message so that the Excel app can open the clicked file. 

    However, when an option to ignore the DDE is enabled, the Excel app can’t send the message and therefore you get the error. So, to resolve it, you must enable DDE.

    1. Launch the Excel app.
    2. Select the File tab.
    3. Then, click Options in the bottom-left corner of the window.
    4. On the next window, select Advanced from the sidebar
    5. Keep scrolling and stop when you reach the General section at the bottom.
    6. Uncheck the Ignore other applications that use Dynamic Data Exchange (DDE) option.
      Enable-DDE
    7. Click OK.
    8. Check if the previous problematic Excel file opens without the error message.

    If the error pops up again, enable the following option.

    1. Navigate to File > Options.
    2. Select Trust Center from the sidebar and click the Trust Center Settings button in the right pane.
      click-Microsoft-Excel-Trust-Center-button
    3. Then, select External Content from the sidebar.
    4. On the right pane, choose the Enable automatic update for all Workbook Links option.
      Enable-automatic-update-Excel-options

    If the error pops up again, use the registry to enable the DDE option. However, be sure to take a backup of the registry beforehand as making inappropriate changes to the registry could cause system issues.

    1. Press Windows + R, type regedit, and press Enter.
      registry-editor-run-commnand
    2. Then, click File and select Export.
      Export-registry-settings-and-save-to-PC
    3. Save the backup of the current registry configurations file in a preferred location.
    4. Now, copy and paste the following path into the registry URL bar.
      HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open
      Paste-registry-path
    5. Right-click on ddeexec and select the Rename option.
      rename-ddeexec
    6. Then, enter a preferred name such as old_dde.
      old-dde
    7. Then, select the command option just above it and open Default In the right pane.
      click-command-default
    8. Replace the previous Value Data with the following address.
      "C:\Program Files\Microsoft Office\Root\Office16\EXCEL.EXE" "%1"
      DDE-enable
    9. Close the registry editor and restart the system.

    Disable or Uninstall Com Add-Ins

    In case there’s a faulty Excel add-in installed on your system, you might encounter such an error. So, you should either disable the add-in or uninstall it completely from the system.

    To check if the add-ins are behind the issue, 

    1. Press Windows + R key.
    2. Type excel /safe and press Enter.
      open-excel-in-safe-mode
    3. Open the Excel file and check if it returns the error message.

    If the Excel file opens successfully without the error, one or more of the installed add-ins is probably faulty. To disable it, follow the steps below.

    1. Launch the Excel app.
    2. Select File > Options.
    3. On the next window prompt, select Add-ins from the sidebar.
    4. Now, in the right pane, select the COM Add-ins option next to the Manage field.
      Excel-COM-add-in
    5. Then, click the Go button.
    6. Uncheck the checkbox next to the add-in. See if the error message has been resolved.
      Uncheck-to-disable-Excel-add-in
    7. Repeat Step 7 until you find the problematic add-in.  
    8. To remove the add-in, select it and click Remove.
      Remove-Excel-add-in

    Set Excel as the Default App

    By default, an Excel file has the XLSX format. So, the program associated with opening such files must be the Excel application. Otherwise, the file may not open and return an error.

    To resolve it, make sure Excel is set as the default app in system settings.

    1. Select the Excel file where you are receiving the error.
    2. Right-click on it and select Open with > Select another app.
      Choose-another-app-Excel-file
    3. On the next prompt, select Excel from the list of programs.
      Set-Excel-as-defualt-app-to-open-XLSX-file
    4. Then, click Always.
    Note: To choose the default app for each file type like XLSX, open the Settings app (Windows + I) and go to Default apps > Choose defaults by file type

    Repair the Excel App

    Although the above solutions fix the error most of the time, you might still receive the error. This happens when the Excel app itself is suffering from an unknown glitch/bug.

    To repair it,

    1. Save all the Excel files you are currently working on and exit the app.
    2. Press Windows + R key, type appwiz.cpl, and press the Enter key.
      open-control-panel-to-uninstall-apps
    3. On the Programs and Features window, select Microsoft 365 or Microsoft Excel <your-excel-version>.
      Excel-Office-365-repair-control-panel
    4. Click Change in the top bar.
    5. On the next prompt, select Quick Repair and click Repair.
      Quick-Repair-Microsoft-Office-Excel
    6. Follow the on-screen instructions and wait until the repair process completes.
    7. If the issue persists, select the Online Repair option and click Repair.
    Excel Basics
    Jabin Manandhar

      As a tech content writer, Jabin covers Excel-related articles at InsideTheWeb. His articles mainly involve helping new users to quickly familiarize themselves with the Excel interface and explaining various essential features. While he got introduced to Excel in his early school days, he developed a keen interest in it after working on a college project. He was impressed at how quickly one could accomplish several tasks with built-in functions like the filter function and user-friendly tools like the power query. Keeping beginner audiences in mind, he loves to explain even the most fundamental Excel concepts in detail and break down complex topics with a step-by-step approach. As an avid Excel user, he believes every task can be done a lot quicker if you know the right tools and techniques. When he’s not behind a keyboard, he loves to listen to interesting audiobooks and podcasts.

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Disable DDE Option
      • Disable or Uninstall Com Add-Ins
      • Set Excel as the Default App
      • Repair the Excel App
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.