Geek Dashboard Home
  • News
  • Smartphones
    • Android
    • iOS
  • Computers
    • Windows
    • macOS
  • Internet
  • Reviews
  • Tools
    • Password Generator
    • iFrame Tester
Search Geek Dashboard
Home • Computer

How to Fix “There was a problem sending the command to the program” error in MS Excel

Varun Sharma • Updated March 27, 2020 • 9 min read •

When opening Microsoft Office Excel if you see “There was a problem sending the command to the program” error dialog, it means you are not able to connect Microsoft Office applications correctly and you need to make changes in settings to fix there was a problem sending the command to the program error. Due to this error, you cannot perform any operations like editing/saving in Microsoft Excel software.

There was a problem sending the command to the program error triggers when Windows operating system sends DDE (Dynamic Data Exchange) commands to Microsoft Office software (Microsoft Package).

Or there might be some background running process related to MS office that causes “An error occurred when sending commands to the program”. This common Windows error occurs not only for Microsoft Excel users but also for any Windows user. There are also chances to see There was a problem sending the command to the program error in other Microsoft software like PowerPoint, Word, etc.

So, In this tutorial, we are going to solve this There was a problem sending the command to the program problem. If you are getting this error and annoys you so much, don’t worry. Try these solutions below and check which one solves the problem for you.

Solving “There was a Problem Sending the Command to the Program” error in MS Excel

The There was a problem sending the command to the program error can be encountered by any Windows 10, Windows 8 and Windows 7 users. This error is very confusing.

When you click OK on the error dialog box, it shows your Excel file data and allows you to modify the content. But when you try to save the changes, you will see “Your changes could not be saved to filename.xlsx because of sharing violation. Try saving to a different file.” error with an OK button.

When you try to open the newly saved file, you will see another “The file you are trying to open, is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?” error dialog box. Literally, we can not access/modify any of our old Excel files due to There was a problem sending the command to the program error.

How to fix "There was a problem sending the command to the program"

Here are the troubleshooting steps to fix There was a problem sending the command to the program error in Microsoft Excel.

1. Ignore or Disable DDE

As mentioned above, Windows sends DDE (Dynamic Data Exchange) commands to Microsoft Office applications and it might cause the error. So, the next solution is to ignore or disable the DDE. It can be permanently resolved by disabling this DDE feature.

Follow these steps to fix There was a problem sending the command to the program error in MS Excel:

  1. Open MS Excel from the start menu.
  2. Select File and then Options.
    Open MS Excel Options
  3. Go to Advanced tab from the left side menu.
    Open MS Excel Options and Select Advanced
  4. Scroll down to General options
  5. Uncheck “Ignore other applications that use Dynamic Data Exchange (DDE)“.
    Ignore DDE
  6. Click OK and reopen Microsoft Excel.

That’s it, There was a problem sending the Command to the program will be fixed after reopening the MS Excel software. This is the common and working solution for our error. If it didn’t fix the issue, try the other solutions below.

2. Disable Antivirus

One of the foremost cause which is leading to this error is your Antivirus. Sometimes whenever an application tries to access your network, the Antivirus blocks the application accessing the Internet. This leads to no connection to Microsoft Office Apps and ultimately shows the “There was a problem sending the command to the program” error.

disable antivirus and firewall

So, first of all, disable your Antivirus from the system tray icon or so by any other means (you know it better). Now, if this solution solves your problem, great! Give us a like and share. And if not working, try other solutions.

Recommended: 

  • How to Merge Columns in Microsoft Excel Without Data Loss
  • 9 Best Free Microsoft Paint Alternatives

Don’t forget to re-enable the antivirus again to protect your machine from malware/ransomware attacks. If antivirus is the culprit in your case, make sure to whitelist the MS office applications in your antivirus settings.

3. Disable “Run as Administrator” Option

Some applications won’t work until you provide them administrative privileges but sometimes it causes problems similar to There was a problem sending the command to the program error. So, you need to uncheck “Run as Administrator” option for MS Excel.

Follow the steps below to fix an error occurred when sending commands to the program error:

  1. Click Windows button and type Excel.
  2. Right click on MS Excel icon and select “Open file location”.
    Open MS Excel File Location
  3. Again right-click on MS Excel icon and choose Properties.
  4. Switch to Compatibility tab and uncheck “Run this program as an administrator” option.
    Disable Administrative Preveliges
  5. Click OK to save changes.

4. Reset File Association

The error There was a problem sending the Command to the program can be generated because of the wrong file association for the MS Excel file. Follow the steps below to reset the file association for MS Excel. The steps for all Windows (7/8/10) are same, the interface may change but the process remains the same.

Steps to “Reset File Association”

  1. Go to Start and open Control Panel.
  2. Select Default Programs.
    Open Default Programs
  3. Click on Associate a file type or protocol with a specific program.
    Select File Type option
  4. Select MS Excel, and then select Change program.
    Change Program Association
  5. Under Recommended Programs, select Microsoft Office.
    Choose MS Excel
  6. Click OK to save the changes.
Note: Windows 8 and Windows 10 users can directly search for Default Programs and then follow the same steps mentioned above.

5. Turn Off Add-Ins

There are several Microsoft Office Add-Ins that might case “There was a problem sending the Command to the program” error. You need to disable these Add-Ins in MS Excel. Yes, these Add-Ins bring new features to MS Office but sometimes cause errors.

Follow the steps below to turn of add-ins from MS Excel:

  1. Open MS Excel from the start menu.
  2. Choose File and then Options.
  3. Select the Add-Ins option and select “COM add-ins” from Manage and click Go…
    Turn Off Add-ins
  4. Uncheck one Add-Ins and Click OK.
    Clear any Add-ins

Repeat this process by checking different Add-In each time until the problem There was a problem sending the Command to the program is resolved. After finding the Add-In which is causing the problem, you can re-enable the remaining Add-Ins.

6. Disable Hardware Acceleration

Many applications require hardware acceleration to improve their performance which is provided by your graphics card. (Read this article to keep your Windows 10 running smoothly.)

When your video card is unable to provide hardware acceleration then the error There was a problem sending the Command to the program generates.

Before trying below steps make sure to update your graphics card drivers to the latest version available. If the problem is still occurring, follow the steps below.

  1. Open MS Excel from the start menu.
  2. Select File – Options.
  3. Now, select the Advanced option and scroll down to Display tab and check “Disable hardware graphics acceleration“.
    Disable Hardware Acceleration
  4. Save the changes and restart MS Excel.

After disabling it, you might notice some performance glitches but it is worth to fix the error.

7. Fix using Registry Editor

You might have noticed that even after uninstalling the software, some files still remain on the installation directory. And you can’t delete them because of registry values they add to the Windows registry editor.

There was a problem sending the Command to the program error can be caused because of registries, so let’s try to fix it.

  1. Press Win + R to open Run.
  2. Type “regedit” to 0pen Registry Editor.
  3. Navigate to HKEY_CURRENT_USER – SOFTWARE – Microsoft – Office – 15.0 – Excel.Registry Editor Fix
  4. Expand the Excel registry and check if there is any registry named Data. If exists, delete the registry completely.

8. Verify or Install the Latest Updates

Windows 10 is a great successor to Windows 7/8/8.1 and its updates are great. Updates are always important and bring better performance. And if you are not using the latest features on latest updates, you are missing many great features. Just like it, there may be the problem that you haven’t upgraded to latest version of MS Office.

Or you might have disabled automatic updates which might also lead to There was a problem sending the Command to the program problem. So, I recommend you to install the latest updates for MS Office to fix the error.

Also Read:

  • How to Bypass Microsoft Account Sign-in Password in Windows 10/8
  • How to Bypass Windows 10 Password Screen using USB Recovery Disk

9. Repair MS Office

Sometimes the error There was a problem sending the command to the program occurs because your MS Office installation is corrupted. Repairing the MS Office can fix the problem with ease and you not need to worry about it anymore.

Follow the step below to repair MS Office:

  1. Go to Programs and Features from the Control Panel.
  2. Right-click on the MS Office and select Change.
    Repair MS Office
  3. Select Repair and click Continue button.
    Repair MS Office 2

Microsoft Windows has the great capability to repair itself and so its software. It should fix the There was a problem sending the command to the program error completely.

10. Reinstall MS Office

If repairing does not work for you, uninstall the MS Office completely from Program and Features option. And once it is removed, restart your PC/Laptop and install a fresh copy of MS Office. It should be the latest version and not corrupted. (Download MS office from official website)

reinstall microsoft excel to fix There was a problem sending the command to the program error

Related:

  • [Top 21] Best KPI Dashboard Excel Templates for All your Needs
  • How to Convert Invoices into an Excel Spreadsheet

So, these were the working solutions for There was a problem sending the command to the program error in MS Excel. If none of the solutions works for you, please contact the Microsoft support staff and mention the problem their support team. They can troubleshoot the and fix your problem.

Computer Excel Microsoft Troubleshooting Windows Windows Errors

Be the Change!

Spread the word and help us create better tech content

Facebook Twitter Reddit WhatsApp Pinterest
Avatar for Varun Sharma

Varun Sharma

An Engineering student loves to write about tech and new things processing towards technology. Advancing towards better growing and learning the best, also loves to travel the world and play video games.

Read all 13 articles from Varun

Comments

  1. Avatar for Mike FredaMike Freda says

    May 16, 2020 at 12:11 AM

    Wow! The fix was that easy. Thanks for this info. Made the change to uncheck the option in Excel to “Ignore or Disable DDE” which worked like a charm. Thank you, thank you, thank you!

  2. Avatar for LenpLenp says

    December 3, 2019 at 1:25 PM

    For several years I have been fighting the nuisance ‘There was an error sending the command…message. NOW IT IS FIXED!

    It was a add in to Excel related to Quickbooks, which was uninstalled from this system years ago!

    You geeks just saved me a lump of money, since I was ready to pitch Windows…out the window!
    Many thanks!

  3. Avatar for Nivedita DasNivedita Das says

    July 9, 2018 at 11:18 AM

    Hi Varun,

    Thanks for this amazing information and all fixes are amazing.

    I am using MS Office from last 10 years. Last month, my office files got corrupted due to virus. That was very critical situation for me. I fixed few file by manual ways but, I was unable to repair all of them. At that time, I downloaded a tool from web called Stellar File Repair Toolkit.

    Basically, It is the combination of 4 tools : Word file repair, Excel file repair, PowerPoint file repair and ZIP file repair. It is paid but it helped me to get my all files back. You should mention these types of software in your post.

  4. Avatar for Robin KhokharRobin Khokhar says

    June 18, 2018 at 5:40 PM

    Hi Varun,
    Thanks for sharing these useful insights and just bookmarked it for the future reference.
    Have a good week ahead.

Over 1,30,286+ Followers

Join now to get all latest updates from Geek Dashboard

Facebook Twitter Telegram Pinterest YouTube Instagram

Recently Published

  1. TAGRY X08 True Wireless Earbuds Review: Budget-Friendly Excellence with Long Battery Life
  2. Why Are Tech Lawsuits Becoming the New Normal in the US
  3. My Experience of Using TuneFab Amazon Video Downloader
  4. Wondershare Dr. Fone 13 Review - The Ultimate Mobile Toolkit for iOS and Android
  5. TOZO OpenEgo Review - Is It a Reliable and Practical Headphone?
  6. Samsung Lost its Crown as the Top Foldable Smartphone Seller Worldwide

Download the Apps Now

We put a lot of effort and resources in writing our articles, and we believe it is our responsibility to satisfy your tech hunger

Download Geek Dashboard Android App on Google PlayAndroid App onGoogle Play Download Geek Dashboard Extension on Chrome Web StoreBrowser Extension onChrome Web Store
Geek Dashboard Logo

Geek Dashboard brings you the latest and greatest in technology news, reviews, and how-to guides. From smartphones to laptops, drones to VR and everything in between, we've got you covered

Got a Tip? Write In? tip@geekdashboard.com

© 2012 - 2025 · Geek Dashboard, product of ikva eSolutions

  • Blog
  • Advertise
  • About
  • Jobs
  • Contact
  • Privacy Policy
  • Write For Us
  • T&C
  • Office Setup

No dogs were injured while working on this website because we love them