Fix Excel 2013 Error Sending a Command to the Program
Question details
Resolve an Excel 2013 command error when opening spreadsheets from shortcuts or email.

- Product
- Microsoft Excel 2013
- Device & OS
- Windows 8.1
- Scenario
- The user opens an Excel file from a shortcut or an email attachment.
- Observed behavior
- Excel may report a problem sending a command to the program or display a temporary-folder error.
Save an email attachment to a local folder and try opening it from Excel using File > Open. Note whether the error also occurs when you open a local file or only when you use a shortcut or attachment.
Check the DDE setting and Excel file association
Use this solution when Excel opens normally but files fail to open from shortcuts or email.
Start Excel 2013, then select File > Options > Advanced.
Under General, clear the checkbox for “Ignore other applications that use Dynamic Data Exchange (DDE)” if it is selected, then click OK.
In Windows Control Panel, open Default Programs > Associate a file type or protocol with a program. Check that relevant extensions, such as .xlsx, open with Excel 2013.
Close Excel, then double-click the local spreadsheet or open the saved email attachment again.

Test add-ins, graphics settings, and the temporary folder
Use these checks if the error continues or mentions a temporary folder.
Repair Office and test Windows account settings
Use this solution if DDE, file associations, and add-in checks do not resolve the error.
Open spreadsheets with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing compatible Excel files. It can help you move existing spreadsheets into another office suite, but it does not repair Excel 2013 or its Windows settings.

Frequently Asked Questions
What does the DDE setting do in Excel 2013?
DDE lets other applications send messages to Excel. If Excel is set to ignore those messages, files opened from outside Excel may not open as expected. Check the option under File > Options > Advanced > General.
Why does the spreadsheet open in Safe Mode but not normally?
An add-in or another startup component may be interfering. In Excel, go to File > Options > Add-ins, choose COM Add-ins from the Manage list, and click Go to test with add-ins disabled.
How can I check whether Excel can access the temporary folder?
Press Windows+R, enter %TEMP%, and click OK. Try creating a test file in the folder and check that the drive has free space.
Should I disable Protected View for an email attachment?
Do not disable it simply to bypass the error. Save the attachment locally, confirm that you trust its source, and review the reason it is blocked in File > Options > Trust Center > Trust Center Settings.
Will repairing Office delete my spreadsheets?
Office repair targets the installed Office programs rather than your spreadsheet files. Start it from Control Panel > Programs and Features by selecting Microsoft Office 2013 and clicking Change.




