“There was a problem sending the command to the program.”
Cause: The above error may occur if in Excel settings Ignore other applications property is selected.
Solution: In order to solve above problem follow below steps depending on your MS Excel version:
For Excel 2010
- Go to File-> Options.
- Click Advanced and then in the General area clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box.
- Click OK.
For Excel 2007
- Go to Microsoft Office Button-> Excel Options.
- Click Advanced and then in the General area clear the Ignore other applications that use Dynamic Data Exchange (DDE).
- Click OK.
For Excel 2003 or earlier versions
- Click Tool-> Options.
- In the General tab clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box.
If after performing above steps you still unable to open your Excel file then try following alternative solution:
- Go to the location C:\Program File\Microsoft Office\Office 12\excel.exe.
- Right click on Excel.exe then click Properties, under Properties click on Compatibility tab.
- Now check for any check mark in Compatibility mode option and click “change settings for all users” tab at the bottom of screen.
- Uncheck the Run as Administrator option.
- Make sure to uncheck all the checkbox in Compatibility mode.
- Finally click on Apply and then click OK.
If you have exhausted all above method and your Excel file is not ready to open that means your Excel file got damaged and you need an excellent third party tool to repair your damaged Excel file.