Solved Microsoft Excel 2019 File Error The document cannot be saved | Stellar

Solved Microsoft Excel 2019 File Error The document cannot be saved | Stellar

Ian Lv13

Solved - The File is Corrupted and Cannot be Opened - Excel

Summary: Unable to open Excel file due to the error ‘The file is corrupted and cannot be opened’? Read this blog to find more details about the error, possible reasons behind it, and solutions to fix the error. In addition, the blog mentions about Stellar Repair for Excel software that can help fix the Excel error in a few clicks. Download the software now and see free preview of the file.

Free Download for Windows

About the Error

Microsoft Excel is a widely used spreadsheet application that comes bundled with MS Office. Users tend to update the application with new security patches and features. Sometimes these updates can cause problems, and result in “The file is corrupted and cannot be opened” error.

The File is Corrupt and Cannot be Opened Error Message

Figure 1 – Excel File Corrupted Error Message

Other Possible Reasons behind ‘The File is Corrupt and Cannot Be Opened’ Excel Error

  • Opening an older Excel version file in a newer version of Excel. For instance, opening Excel 2013, 2010, or earlier versions in Excel 2016.
  • When attempting to open a Microsoft Office (Excel) email attachment in Microsoft Outlook 2010, MS Office 2010 reports a problem with the file preventing it from opening.

How to Fix the ‘Excel File is Corrupt and Cannot Be Opened’ Error?

Here are a few possible solutions that you can try to fix the ‘Excel file is corrupt and cannot be opened’ issue and open your Excel file.

Solution 1: Changing Component Services Settings

Solution 2: Changing the Protected View Settings

Solution 3: Repair Excel Files using Excel Repair Software

Solution 1: Changing Component Services Settings

[Caution] Changing Component Services settings requires making changes to the registry, and any mistake can harm your computer.

Follow these steps to change ‘Component Services’ settings:

  • Click ‘Start’ or ‘Win+R’ and type ‘dcomcnfg’ and press ‘Enter’.

  • In the navigation pane, expand the ‘Component Services’, and then expand ‘Computers’.


Changing Component Services Settings

Figure 2 – Component Services Settings

  • Next, right-click on ‘My Computer’, and then click ‘Properties’.

When the ‘My Computer Properties’ dialog box appears, click on the ‘Default Properties’ tab and then set the following values:

  • Default Authentication Level: Connect
  • Default Impersonation Level: Identify

My Computer Properties

Figure 3 – Illustrates My Computer Properties

  • Click ‘OK’ to change ‘Default Properties

Solution 2: Changing the Protected View Settings

[Caution] Disabling the ‘Protected View’ can put your system at high risk. Viruses attached to the Excel files can attack and infect your system. Be careful before using this option.

Excel 2010 file cannot open due to the ‘Protected View’ setting in Microsoft Outlook 2010. And so, changing the setting may help fix the error. For this, perform these steps:

  • Open MS Excel 2010, go to the ‘File’ menu and click ‘Options’.

Select Options in Excel 2010

Figure 4 – Options

  • When the ‘Excel Options’ window opens, click on ‘Trust Center’ and then on ‘Trust Center Settings’.

Trust center settings in Excel

Figure 5 – Open Trust Center Settings

  • Next, choose ‘Protected View’ and uncheck all the options including ‘Enable Protected View for Outlook attachments’ if you use Outlook for email.

change protected view settings

Figure 6 – Uncheck Protected View Settings

  • Click ‘OK’. Restart the application and try opening the Excel file again.

If none of the above solutions works for you, your Excel file is likely severely corrupt. To repair corrupt Excel files, you need to use advanced options like Stellar Repair for Excel tool. It repairs corrupt and damaged Excel files and helps in retrieving lost data.

Solution 3: Use Excel File Repair Tool

Considering the risks associated with the above solutions, it’s better to use an Excel repair tool to repair single or multiple corrupt Excel files at once. The process is simple, and even a novice can use the Excel file repair tool to repair Excel files with the help of the following steps:

  • Download Stellar Repair for Excel and install it.

Free Download for Windows

  • Launch the tool. In the tool’s main interface, click ‘Browse’ to select the file. If you don’t know the file location use the ‘Search’ option.

Browse and Search

Figure 7 – Illustrates Selecting Corrupt Excel File in Stellar Repair for Excel

  • Select the file, and then click on Repair.

select corrupt file and repair

Figure 8 – Illustrates Initiating Excel File Repair in Stellar Repair for Excel

  • The software scans and lists the Excel file in the left pane. Click on the file to preview its recoverable objects in the right pane.

preview recoverable excel objects

Figure 9 – Illustrates Preview of Recoverable Excel File Objects

  • Save the repaired file at either the default location or a user-specified location.

select repaired file location

Figure 10 – Illustrates Saving Repaired Excel File in Stellar Repair for Excel

  • Click ‘OK’ to save the repaired Excel file. After the repair process is completed, browse to the location and open it with MS Excel 2010 or any other version.

repaired file saved Dialog Box

Figure 11 – Illustrates Saving Complete Message in Stellar Repair for Excel

You will be able to access your Excel file from the selected location.

Conclusion

You can use the first two possible solutions to fix the “The file is corrupted and cannot be opened” error. If you can access the file, save its data and restore the default settings. However, if the file is corrupt and the data retrieved using the first two solutions is inconsistent or incomplete, use Stellar Repair for Excel. This tool can help you recover Tables, Charts, Chart Sheets, cell comments, Images, and Formulas while preserving the worksheet properties and cell formatting. You can also preview the file and verify the data inside the file before saving it.

[Fix] Excel formula not showing result

Summary: Is your Excel spreadsheet showing text of a formula you’ve entered and not its result? This blog explains the possible reasons behind such an issue. Also, it describes solutions to fix the ‘Excel formula not showing result’ error. You can try Stellar Repair for Excel software to recover engineering and shared formulas.

Free Download for Windows

Sometimes, when you type a formula in a cell of worksheet and press Enter, instead of showing the calculated result, it returns the formula as text. For instance, Excel cell shows:

Excel not Showing Formula

But you should get the result as:

Excel Formula Working Sample

Why Does Excel Show or Display the Formula Not the Result?

Following are the possible reasons that may lead to the ‘Excel showing formula not result’ issue:

  1. You accidentally enabled “Show Formulas” in Excel.
  2. The cell format in a spreadsheet is set to text.
  3. ‘Automatic calculation’ feature in Excel is set to manual.
  4. Excel thinks your formula is text (Syntax are not followed).
  5. You type numbers in a cell with unnecessary formatting.

How to Fix ‘Excel Showing Formula Not Result’ Issue?

Solution 1 – Disable Show Formulas

If only the formula shows in Excel not result, check if you have accidentally or intentionally enabled ‘show formula’ feature of Excel. Instead of applying calculations and then showing results, this feature displays the actual text written by you.

You can use the ‘Show Formulas’ feature to quickly view all formulas, but if you are not aware of this feature, and enabled it accidentally, it can be a headache. To disable this mode, go to ‘Formulas’ and click on ‘Show formula enabled.’ If it’s previously enabled, it will be disabled by just clicking on it.

Show Formula Enabled

Solution 2 – Cell Format Set to Text

Another possible reason that only formula shows in Excel not result could be that the cell format is set to text. This means that anything written in any format in that cell will be treated as regular text. If so, change the format to General or any other. To get Excel to recognize the change in the format, you may need to enter cell edit mode by clicking into the formula bar or just press F2.

Enter Cell Edit Mode by Clicking into the Formula Bar

Solution 3 – Change Calculation Options from ‘Manual’ to ‘Automatic’

There is an “automatic calculation” feature in Excel, which tells Excel to do calculations automatically or manually. If ‘Excel formula is not showing results’, it may be because the automatic calculations feature is set to manual. This issue is not easily detected because it results in calculating formula in one cell but if you copy it to some other cell, it will retain the first calculation and will not recalculate on the base of the new location. To fix this, follow these steps:

  • In Excel, click on the ‘File’ tab on the top left corner of the screen.
  • In the window that opens, click on ‘Options’ from the left menu bar.
  • From ‘Excel Options’ dialog box, select ‘Formulas’ from the left side menu and then change the ‘Calculation options’ to ‘Automatic’ if it’s currently set as ‘Manual’.

Automatic Calculations Feature

  • Click on ‘OK’. This will redirect you to your sheet.

Solution 4 – Type Formula in the Right Format

There is a proper way to tell Excel that your text is a formula. If you don’t write the formula in a particular format, Excel considers it as simple text and hence no calculations are performed according to it. For this reason, keep the following in mind when typing a formula:

  • Equal sign: Every formula in Excel should start with an equal sign (=). If you miss it, Excel will mistake your formula as regular text.

  • Space before equal sign: You are not supposed to enter any space before equal sign. Maybe a single space will be hard for us to detect, but it breaks the rule of writing formulas for Excel.

  • Formula wrapped in quotes: You need to make sure that your formula is not wrapped in quotes. People usually make this mistake of writing a formula in quotes, but in Excel, quotes are used to signify text. So your formula won’t be evaluated. But you can add quotes inside formula if required, for example: =SUMIFS(F5:F9,G5:G9,”>30″).

  • Match all parentheses in a formula: Arguments of Excel functions are entered in parenthesis. In complex cases, you may need to enter more sets of parenthesis. If those parentheses are not paired/closed properly, Excel may not be able to evaluate the entered formula.

  • Nesting limit: If you are nesting two or more Excel functions into each other, for example using nested IF loop, remember the following rules:

    • Excel 2019, 2016, 2013, 2010, and 2007 versions only allow to use up to 64 nested functions.
    • Excel 2003 and lower versions only allow up to 7 nested functions.

Solution 5 – Enter Numbers without any Formatting

When you use a number in the formula, make sure you don’t enter any decimal separator or currency sign, e.g. $, etc. In an Excel formula, a comma is used to separate arguments of a function and a dollar sign makes an absolute cell reference. Most of these special characters have built-in functions so avoid using them unnecessarily.

What to Do If the Manual Solutions Don’t Work?

If you’ve tried out the manual solutions mentioned above but still unable to resolve the ‘Excel formula not showing result’ issue, you can try repairing your Excel file with the help of an automated Excel repair software , such as Stellar Repair for Excel.

This reliable and competent software scans and repairs Excel files (.XLSX and .XLS). It also helps recover all the file components, like formulas, cell formatting, etc. Armed with an interactive GUI, this software is extremely easy to work with, and its advanced algorithms allow it to fend off Excel errors with ease.

Free Download for windows

Conclusion

This blog outlined the possible reasons that may cause ‘Excel not showing formula results’ issue. Check out these reasons and implement the manual fixes, depending on what resulted in the problem in the first place. If none of these fixes help resolve the issue, corruption in the Excel file might be preventing the formulas from showing the actual results. In that case, using Stellar Repair for Excel tool might help.

Ways to Fix the “Failed to Parse the Corrupted Excel File” Error

Summary: While parsing an Excel file, you may experience the “Failed to parse the corrupted Excel file” error. It usually occurs if the Excel file is corrupt. This blog covers some easy fixes to fix this Excel error. It also mentions an advanced Excel repair tool that can help fix the issue by repairing the corrupted file.

Free Download for Windows

You may encounter the “Failed to parse the corrupted Excel file” error when parsing (extracting or converting) the data in an Excel file. This error usually occurs if the Excel file is corrupted – either completely or partially (some of its objects, like formulas, macros, and values are corrupt). However, there are various other reasons that may lead to this Excel error. Let’s know the possible causes behind the “Failed to parse the corrupted Excel file” error and how to fix it.

Causes of the “Failed to parse the corrupted Excel file” Error

This error could occur due to any of the following causes:

  • Damaged or corrupted macros
  • Excel document is closed suddenly
  • Issues with Excel application installation
  • Virus or malware attack
  • Hardware failure
  • Bad sectors on the hard drive

Ways to Fix the “Failed to parse the corrupted Excel file” Error

Here are some possible ways to fix this error and recover the Excel file.

Method 1: Try to Save the File in a Different Format

Sometimes, the error can occur if the file format is not compatible with your Excel version. You can try saving the file to a different format. To do this, follow the below steps:

  • Open the Excel file.
  • Click on the File option and then select Save As.
  • Click on Browse option and then click Save as Type.

Save As Window

  • Select the desired Excel file format and click Save.

Method 2: Revert to the Previously Saved Version of the Excel File

You can try reverting to the previously saved version of the Excel file. Here’s how:

  • Open your Excel application.
  • Navigate to File > Info > Manage Workbook.

Go To Manage Workbooks

  • Click Recover unsaved workbooks.

Click Recover Unsaved Workbooks

  • Click on the Restore option you see at the top of the file.

Method 3: Set the Calculation Option to Manual

When the calculation mode is set to automatic, Excel automatically recalculates all the formulas in the file even if you make a minor change. It can take time to load the file and stop you from parsing data in your Excel file. You can change the calculation option to manual so that Excel only recalculates when you explicitly tell the application to do it. Here are the steps:

  • Open your Excel application.
  • Navigate to File and then click Options.
  • In Excel Options, select Formulas.
  • Under Workbook Calculation, select Manual and click OK.

Select Manual On Excel Options

Method 4: Use Open and Repair Utility

You can try repairing the corrupted Excel file with Excel’s inbuilt tool – Open and Repair . To use the tool, follow the steps cited below:

  • In Excel, go to the File tab and then click Open.
  • Click Browse to select the corrupted file.
  • The Open dialog box will appear. Click on the corrupted file.
  • Click on the arrow next to the Open button and then click Open and Repair.
  • You will see a dialog box with three buttons Repair, Extract Data, and Cancel.

Click Repair Button

  • Click on the Repair button to recover as much of your work as possible.
  • After repair, a message will appear (as shown in the below figure).

Message After Repair

  • Click Close.

What If None of the Above Methods Works?

The above methods may fail to work if the Excel file is severely damaged. In such a case, we recommend using an efficient Excel repair tool , such as Stellar Repair for Excel. It can quickly repair corrupted Excel (.XLS/.XLSX) files. It can recover all the objects from the file, including charts, tables, formulas, etc. You can download the free trial version of the tool to preview the recoverable data.

Conclusion

Above, we have discussed some tried and tested methods to fix the “Failed to parse the corrupted Excel file” error. If the Excel file is severely damaged or corrupted, you can try repairing it using a third-party Excel repair software, like Stellar Repair for Excel . It can repair multiple Excel files without affecting the original formatting. The tool is compatible with all Excel versions.

How to Fix Excel File Couldn’t Open in Protected View

Summary: This blog discusses about the Excel error ‘The file couldn’t open in Protected View’ and workarounds to fix the error. If you cannot access the Excel file data, using an Excel file repair tool can help you quickly restore the data to its original state.

Free Download for Windows

Protected View is a feature in Microsoft Excel that opens a file in read-only mode while disabling the editing functions. An Excel file opens in Protected View if the file is from an unsafe location. For example, the file may be opened from an insecure Internet location or downloaded as an Outlook attachment from suspicious senders. In that case, your Excel application won’t let you open the file to protect it against malware or virus attacks.

However, the Protected View feature sometimes prevents an Excel file from opening even if it is from a safe location. Also, opening an Excel file may return an error message ‘file couldn’t open in protected view’.

the file couldn't open in Protected View excel error

You may be able to resolve the issue by closing all the open Excel files, closing the Excel application, and then re-opening the problematic file. But this process can take a significant amount of time as you need to close and re-open the Excel application and the file continuously.

How to Fix the Excel File Couldn’t Open in Protected View Error?

Here are some workarounds to fix the error:

Workaround 1 – Disable the Protected View Settings

Note: Before disabling the protected view settings, ensure you have a reliable antivirus software installed on your computer to safeguard files against malware or virus attacks.

  • Open the Excel file throwing the error, go to File and click the Options tab.
  • From the Options dialog box, go to Trust Center and click on Trust Center Settings.
  • From the Trust Center Settings dialog box, select the Protected View tab.
  • Uncheck the appropriate option under the Protected View section, and then click OK to apply the changes. For instance, uncheck the “Enable Protected View for Outlook attachments” option if the file is a downloaded Outlook attachment.

disable protected view settings

  • Click OK again.

Now try opening the problematic Excel file. If it still doesn’t open, try the following workaround.

Workaround 2 – Repair the Office Installation

Sometimes, corruption in the Office installation may cause Excel to return the ‘file could not open in protected view’ error. So, try repairing your Office installation and check if it solves the problem.

  • Open the Control Panel and click the Uninstall a program option under Programs.
  • Click Uninstall a program under the Programs tab.
  • Right-click the Microsoft Office program you have installed and click the Change button.
  • Select the Repair option and click Continue.

repair office program

Once the repair operation is complete, check if you can open the Excel file without any issue.

Workaround 3 – Install Latest MS Office Updates

Several Excel users have reported about experiencing issues (such as the Protected View issue) on opening an Office document like Excel, Word, or others – after upgrading Windows to a newer version. This problem may occur due to incompatibility between the Office app and the updated Windows version. You can try to fix the problem by upgrading the Office app, and here’s how:

  • Click on the File tab in the Excel file that throws an error.
  • Click the Account tab at the left-hand bottom of the screen.
  • From Office Updates, expand Update Options, and then click Update Now.

office updates

After installing the updates, restart your PC and open the Excel file. If this doesn’t work, use the following workaround.

Workaround 4 – Convert the File and Rename It

Some Excel users resolved the ‘Protected view’ issue by renaming their Excel files. But before that, ensure that the file you are trying to open is saved with .xlsx format. If the file type is .xls, you need to convert it to .xlsx format and then rename it. Before converting the file, save a copy of the original file in the desired location.

If the file type is .xlsx, copy the problematic file. Next, open a blank Excel document and paste the copied file. The file will appear as an icon, double-click on it. If it opens without any error, save it with a different name. Hopefully, reaming the Excel file may help resolve the problem.

Conclusion

There is no fixed solution to resolve the Excel error ‘The file could not open in Protected View’. However, the workarounds discussed in the blog have helped users resolve the ‘Protected View’ issue. Make sure to use the workarounds in the same order as explained in the blog.

If you’re having an issue loading the Excel file data due to the ‘Protected View’ error, consider restoring the data using an Excel file repair tool .

Free Download for Windows

How Can I Recover Corrupted Excel File 2016?

Error Messages Indicating Corruption in Excel File

  • But sometimes, you encounter the “Excel cannot open this file” error message due to corruption in the file.

Excel-cannot-open-this-file

Why does Excel File turn Corrupt?

Following are some common reasons that can turn an Excel file corrupt:

  • Large size of the Excel file
  • The file is virus infected
  • Hard drive on which Excel file is stored has developed bad sectors
  • Abrupt system shutdown while working on a worksheet

Workarounds to Recover Data from Corrupt Excel

The workarounds to recover corrupted Excel file 2016 data will vary depending on whether you can open the file or not.

How to Recover Corrupted Excel File 2016 Data When You Can Open the File?

If the corrupt Excel file is open, try any of the following workarounds to retrieve the data:

Workaround 1 – Use the Recover Unsaved Workbooks Option

If your Excel file gets corrupt while you are working on it and you haven’t saved the changes, you can try retrieving the file’s data by following these steps:

  • Open your Excel 2016 application and click on the Open Other Workbooks option.

open-other-workbooks

  • Click the Recover Unsaved Workbooks button at the bottom of the ‘Recent Workbooks’ section.

recover-unsaved-workbook

  • A window with list of unsaved Excel files will open. Click the corrupt file you want to open.

This will reopen your last saved version of the Excel workbook. If this method doesn’t work, proceed with the next workaround.

Workaround 2 – Revert to Last Saved Version of your Excel File

If your Excel file gets corrupt in the middle of making any changes, you can recover the file’s data if the changes haven’t been saved. For this, you need to revert to the last saved version of your Excel file. Doing so will discard any changes that may have caused the file to turn corrupt. Here’s how to do it:

  • In your Excel 2016 file, click File from the main menu.
  • Click Open. From the list of workbooks under Recent workbooks, double-click the corrupt workbook that is already open in Excel.
  • Click Yes when prompted to reopen the workbook.

Excel will revert the corrupt file to its last saved version. If it fails, skip to the next workaround.

Saving an Excel file in SYLK format might help you filter out corrupted elements from the file. Here are the steps to do so:

  • From your Excel File menu, choose Save As.
  • In ‘Save As’ window that pops-up, from the Save as type dropdown list, choose the SYLK (Symbolic Link) option, and then click Save.

symbolic link format

Note: Only the active sheet will be saved in workbook on choosing the SYLK format.

  • Click OK when prompted that “The selected file type does not support workbooks that contain multiple sheets”. This will only save the active sheet.

Workbooks contain multiple sheets warning msg

  • Click Yes when the warning message appears - “Some features in your workbook might be lost if you save it as SYLK (Symbolic Link)”.

  • Click File > Open.
  • Browse the corrupt workbook saved with SYLK format (.slk) and open it.
  • After opening the file, select File > Save As.
  • In ‘Save as type’ dialog box, select Excel workbook.
  • Rename the workbook and hit the Save button.

After performing these steps, a copy of your original workbook will be saved at the specified location.

How to Recover Corrupted Excel File 2016 Data When You Cannot Open the File?

If you can’t access the Excel file, apply one of these workarounds to salvage the file’s data.

Workaround 1 – Open and Repair the Excel File

Excel automatically initiates ‘File Recovery’ mode on opening a corrupt file. After starting the auto-recovery mode, it attempts to reopen and repair the corrupt Excel file at the same time. If the auto-recovery mode does not start automatically, you can try to fix corrupted Excel file 2016 manually by using ‘Open and Repair’. Follow these steps:

  • Open a blank file, click the File tab and select Open.
  • Browse the location where the corrupt 2016 Excel file is stored.
  • When an ‘Open’ dialog box appears, select the file you want to repair.
  • Once the file is selected, click the arrow next to the Open button, and then click the Open and Repair button.
  • Do any of these actions:
  • Click Repair to fix corrupted file and recover data from it.
  • Click Extract Data if you cannot repair the file or only need to extract values and formulas.

repair excel file

If performing these actions doesn’t help you retrieve the data, proceed with the next workaround.

Workaround 2 – Disable the Protected View Settings

Follow these steps to disable the protected view settings in an Excel file:

  • Open a blank 2016 workbook.

blank excel file

  • Click the File tab and then select Options.

Excel file options

  • When an Excel Options window opens, click Trust Center > Trust Center Settings.

open excel trust center settings

  • In the window that pops-up, choose Protected View from the left side navigation. Under ‘Protected View’, uncheck all the checkboxes, and then hit OK.

disable-protected-view-settings

Now, try opening your corrupt Excel 2016 file. If it won’t open, try the next workaround.

If you only need to extract Excel file data without formulas or calculated values, use external references to link to your corrupt Excel 2016 file. Here’s how you can do it:

  • From your Excel file, click File > Open.
  • From the window that opens, click Computer and then click Browse and copy the name of your corrupt Excel 2016 file. Click the Cancel button.

browse corrupted excel file

  • Go back to your Excel file, click File > New > Blank workbook.

new excel workbook

  • In the new Excel workbook, type “=CorruptExcelFile Name!A1” in cell A1 to reference cell A1 of the corrupted file. Replace the ‘CorruptExcelFile Name’ with the name of the corrupt file that you have copied above. Hit ENTER.
  • If ‘Update Values’ dialog box appears, select the corrupt 2016 Excel file, and then click OK.
  • If ‘Select Sheet’ dialog box pops-up, select a corrupt sheet, and press the OK button.
  • Select and drag cell A1 till the columns required to store the data of your corrupted Excel file.
  • Next, copy row A and drag it down to the rows needed to save the file’s data.
  • Select and copy the file’s data.
  • From the Edit menu, choose the Paste Special option and then select Values. Click OK to paste values and remove the reference links to the corrupt file.

Check the new Excel file for recoverable data. If this didn’t work, consider using an Excel file repair tool to retrieve data.

Alternative Solution to Recover Excel File Data

Applying the above workarounds may take considerable time to recover corrupted Excel file 2016. Also, they may fail to extract data from a severely corrupted file. Using Stellar Repair for Excel software can help you overcome these limitations. The software helps repair severely corrupted XLS/XLSX file and retrieve all the file data in a few simple steps.

free download

Key benefits of using Stellar Repair for Excel are as follows:

  • Recovers tables, pivot tables, images, charts, chartsheets, hidden sheets, etc.
  • Maintains original spreadsheet properties and cell formatting
  • Batch repair multiple Excel XLS/XLSX files in a single go
  • Supports MS Excel 2019, 2016, 2013, and previous versions

Check out this video to know how the Excel file repair tool from Stellar® works:

Conclusion

Errors such as ‘the file is corrupt and cannot be opened’, ‘Excel cannot open this file’, etc. indicate corruption in an Excel file. Large-sized workbook, virus infection, bad sectors on hard disk drive, etc. are some reasons that may result in Excel file corruption. The workarounds discussed in this article can help you recover corrupted Excel file 2016 data. However, manual methods can be time-consuming and might fail to extract data from severely corrupted workbook. A better alternative is to use Stellar Repair for Excel software that is purpose-built to repair and recover data from damaged or corrupted Excel file.

[Fixed] Excel Cannot Open the File Because the File Format or File Extension Is Not Valid

When opening an older version of an Excel file in a newer version, you may encounter the “Excel cannot open the file because the extension is not valid” error. This happens if you have accidentally renamed the file with a different file format or an incorrect file extension. Also, you may get the ‘Excel cannot open the file’ error if the file has become unreadable or corrupted.

This is how the complete Excel error message looks like:

“Excel cannot open the file filename.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.”

Excel Cannot Open the File Extension Not Valid Error

Check out this video for a quick demonstration of how to fix “Excel Cannot Open the File Because the File Format or File Extension Is Not Valid”

How to Fix the ‘Excel Cannot Open the File Because the File Format or Extension Is Not Valid’ Error?

Try any of these workarounds to fix the error and regain access to your Excel file data:

Workaround 1 – Change the Default File Format

By default, an Excel file is saved in .xlsx or .xls file format. Trying to open the file with a different or incorrect extension may cause the ‘Excel cannot open the file because the extension is not valid’ error. To fix the error, try changing the Excel default file format by following these steps:

Note: Take a backup of the Excel file that you cannot open and try the steps on the backup copy.

  • In Excel 2010 and newer versions, click on the File menu.

Note: For Excel 2007 and earlier versions, click on the Office button.

  • On the left panel, click on Options
  • In ‘Excel Options’ window, under Save workbooks section, click on the Save files in this file format: drop-down. Select a file format (i.e., the one supported by your Excel version).

Save Workbook in Other File Format

  • Click OK.

Check if you can open your Excel file. If not, try the next workaround.

Workaround 2 – Edit the Excel File Permissions

You may receive the ‘Excel file format or file extension is not valid’ error if you lack sufficient permissions to open the file. Usually this happens when you try to open an Excel file received from some other user. Follow these steps to change the file permissions and see if it fixes the problem:

  • Right-click on the file that won’t open and click Properties.
  • In the file properties dialog box, click the Security tab and then hit the Edit button.

Edit Excel File Properties

  • When the file’s permissions dialog box appears, click on the Add button.

Add Excel File Permissions

  • Click on the Advanced button from the ‘Select Users or Groups’ window.

Open Advanced Settings

  • Select Find Now. A list of all users and groups will get displayed in a search results box. Choose Everyone group from the list and hit OK.

Select Everyone Group

  • You can see the ‘Everyone’ group in the ‘Enter the object names to select’ textbox. Click OK once again to return to the file’s permission dialog box.

Everyone Group is Added Users Groups

  • Click Everyone from the Group or user names: box and check all the checkboxes under Allow.

Allow Permissions for Everyone

  • Click on Apply and then OK.

Now try to open the Excel file. If you’re still getting the Excel file cannot open error, use the following workaround.

Workaround 3 – Recover Unsaved Workbook

If the ‘Excel file extension not valid error’ occurs when attempting to open an unsaved workbook, do the following to recover the unsaved workbook:

  • In Excel, click File. 
  • From the Info screen, under Manage Versions, click Recover Unsaved Workbooks.

Recover Unsaved Workbooks

Excel will list any unsaved files. Try opening the file and save it. If this doesn’t work, skip to the next workaround.

Workaround 4 – Repair the Workbook

If none of the above workarounds has worked for you, chances are that the Excel file has become corrupted. Try to repair the file using the Excel inbuilt ‘Open and Repair’ utility by following these steps:

  • In your Excel application, click on File > Open.
  • In the ‘Open’ dialog box that pops-up, select the Excel file you want to repair and click the arrow next to the Open button.

Select Excel File for Repairing

  • From the dropdown list, select Open and Repair.

Open and Repair Excel File

  • Excel will ask you to attempt to repair the file or extract data from it. Click Repair to retrieve maximum data. If the Repair option fails, click on Extract Data to recover the data without formulas and values.

Repair Excel File

If the ‘Open and Repair’ utility doesn’t help fix the corrupted file and/or recover the data, use an Excel repair tool  such as Stellar Repair for Excel to regain access to your file and its data.  

free download

Stellar Repair for Excel software can help repair severely corrupted XLS and XLSX files. Also, it helps recover all the file components, including tables, pivot tables, cell comments, charts, chart sheets, images, formulas, etc., without impacting the original structure of the Excel file. 

To learn how the software works, read this: How to repair corrupt Excel file using Stellar Repair for Excel?

Conclusion

You may encounter the error ‘Excel cannot open the file because the extension is not valid’ when opening a workbook with a different file format or an incorrect file extension. Also, the error may occur if the Excel file has turned corrupt. This article has covered some of the most effective workarounds to resolve the error. But if nothing works, you can try to repair the Excel file and retrieve its data using the Stellar Repair for Excel software.

[Fixed] Excel VBA Runtime Error 9: Subscript Out of Range

Summary: The runtime error 9 in Excel usually occurs when you use different objects in a code or the object you are trying to use is not defined. This post will discuss the reasons behind the Excel VBA error “Subscript out of Range” and the solutions to resolve the issue. It will also mention an Excel repair tool that can help fix the error if it occurs due to corruption in worksheet.

Free Download for Windows

Many users have reported encountering the error “Subscript out of range” (runtime error 9) when using VBA code in Excel. The error often occurs when the object you are referring to in a code is not available, deleted, or not defined earlier. Sometimes, it occurs if you have declared an array in code but forgot to specify the DIM or ReDIM statement to define the length of array.

Causes of VBA Runtime Error 9: Subscript Out Of Range

The error ‘Subscript out of range’ in Excel can occur due to several reasons, such as:

  • Object you are trying to use in the VBA code is not defined earlier or is deleted.
  • Entered a wrong declaration syntax of the array.
  • Wrong spelling of the variable name.
  • Referenced a wrong array element.
  • Entered incorrect name of the worksheet you are trying to refer.
  • Worksheet you trying to call in the code is not available.
  • Specified an invalid element.
  • Not specified the number of elements in an array.
  • Workbook in which you trying to use VBA is corrupted.

Methods to Fix Excel VBA Error ‘Subscript out of Range’

Following are some workarounds you can try to fix the runtime error 9 in Excel.

Method 1: Check the Name of Worksheet in the Code

Sometimes, Excel throws the runtime error 9: Subscript out of range if the name of the worksheet is not defined correctly in the code. For example – When trying to copy content from one Excel sheet (emp) to another sheet (emp2) via VBA code, you have mistakenly mentioned wrong name of the worksheet (see the below code).

1
2
3
4
5
6
7
8
Private Sub CommandButton1_Click()
Worksheets("emp").Range("A1:E5").Select
Selection.Copy
Worksheets("emp3").Activate
Worksheets("emp3").Range("A1:E5").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

VBA Error Subscript Out Of Range-When Incorrect Name

When you run the above code, the Excel will throw the Subscript out of range error.

So, check the name of the worksheet and correct it. Here are the steps:

  • Go to the Design tab in the Developer section.
  • Double-click on the Command button.
  • Check and modify the worksheet name (e.g. from “emp” to “emp2”).

Modified Code From emp to emp2

  • Now run the code.
  • The content in ‘emp’ worksheet will be copied to ‘emp2’ (see below).

Content Copied From emp to emp2

Method 2: Check the Range of the Array

The VBA error “Subscript out of range” also occurs if you have declared an array in a code but didn’t specify the number of elements. For example – If you have declared an array and forgot to declare the array variable with elements, you will get the error (see below):

Runtime Error 9 When Not Declared Array

To fix this, specify the array variable:

1
2
3
4
5
6
7
Sub FillArray()
Dim curExpense(364) As Currency
Dim intI As Integer
For intI = 0 to 364
curExpense(intI) = 20
Next
End Sub

Method 3: Change Macro Security Settings

The Runtime error 9: Subscript out of range can also occur if there is an issue with the macros or macros are disabled in the Macro Security Settings. In such a case, you can check and change the macro settings. Follow these steps:

  • Open your Microsoft Excel.
  • Navigate to File > Options > Trust Center.
  • Under Trust Center, select Trust Center Settings.
  • Click Macro Settings, select Enable all macros, and then click OK.

Macro Settings In Trust Center

Method 4: Repair your Excel File

The name or format of the Excel file or name of the objects may get changed due to corruption in the file. When the objects are not identified in a VBA code, you may encounter the Subscript out of range error. You can use the Open and Repair utility in Excel to repair the corrupted file. To use this utility, follow these steps:

  • In your MS Excel, click File > Open.
  • Browse to the location where the affected file is stored.
  • In the Open dialog box, select the corrupted workbook.
  • In the Open dropdown, click on Open and Repair.
  • You will see a prompt asking you to repair the file or extract data from it.
  • Click on the Repair option to extract the data as much as possible. If Repair button fails, then click Extract button to recover data without formulas and values.

If the “Open and Repair” utility fails to repair the corrupted/damaged macro-enabled Excel file, then try an advanced Excel repair tool, such as Stellar Repair for Excel. It can easily repair severely corrupted Excel workbook and recover all the items, including macros, cell comments, table, charts, etc. with 100% integrity. The tool is compatible with all versions of Microsoft Excel.

Conclusion

You may experience the “Subscript out of range” error while using VBA in Excel. You can follow the workarounds discussed in this blog to fix the error. If the Excel file is corrupt, then you can use Stellar Repair for Excel to repair the file. It’s a powerful software that can help fix all the issues that occur due to corruption in the Excel file. It helps to recover all the data from the corrupt Excel files (.xls, .xlsx, .xltm, .xltx, and .xlsm) without changing the original formatting. The tool supports Excel 2021, 2019, 2016, and older versions.


Also read:

  • Title: Solved Microsoft Excel 2019 File Error The document cannot be saved | Stellar
  • Author: Ian
  • Created at : 2024-05-20 10:20:29
  • Updated at : 2024-05-21 10:20:29
  • Link: https://techidaily.com/solved-microsoft-excel-2019-file-error-the-document-cannot-be-saved-stellar-by-stellar-guide/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Solved Microsoft Excel 2019 File Error The document cannot be saved | Stellar