How to Save a Read-Only Macro-Enabled Excel Workbook
Question details
The user is unable to save edits to a downloaded macro-enabled Excel workbook because it persistently opens in read-only mode, even after macros are allowed.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to modify and save data within a downloaded macro-enabled workbook (.xlsm).
- Observed behavior
- The workbook opens in read-only mode, blocking the user from saving any structural or data changes to the original file.
Verify that you trust the source of the downloaded workbook, as enabling macros or removing security attributes on suspicious files can expose your device to malicious scripts.
Clear the Read-Only Attribute in File Properties
Files downloaded from the internet or transferred from other drives are often marked as read-only by the operating system. Clearing this attribute allows direct saving.
When an Excel file is marked as read-only at the system level, no application can overwrite the original file until the restriction is lifted.
Close the workbook in Excel. Navigate to the folder where the macro-enabled file is stored, right-click the file, and select Properties from the context menu.
In the General tab of the Properties window, locate the Attributes section at the bottom. Uncheck the box labeled 'Read-only'.
Click Apply, then click OK. Reopen the workbook in Excel and attempt to save your changes.

Use Save As to Create a Writable Copy
If you cannot modify the original file's attributes, creating a new duplicate using the Save As command bypasses the restriction.
Adjust Trust Center Settings and Remove Protection
Strict macro security settings or internal workbook passwords can simulate a read-only state, requiring manual adjustment in the Trust Center.
Edit and Save Macro-Enabled Workbooks Easily in WPS Office
WPS Spreadsheet offers comprehensive support for macro-enabled workbooks. You can easily view, edit, run VBA macros, and save your .xlsm files without dealing with frustrating read-only errors or compatibility issues.
- 1. Open the workbook in WPS Spreadsheet: Launch WPS Office, click on 'Open', and select your macro-enabled .xlsm workbook.
- 2. Enable macros: When prompted by the security warning at the top of the workspace, click 'Enable Macros' to allow the scripts to run safely.
- 3. Edit and save changes: Make your desired edits to the data or formulas, then click the 'Save' icon on the top toolbar or press Ctrl+S to save the changes directly.

Frequently Asked Questions
Why do downloaded Excel files automatically open in read-only mode?
Downloaded files are often tagged by Windows with a 'Mark of the Web' for security purposes, triggering Excel's Protected View. This prevents potentially dangerous macros or scripts from running automatically and altering your system without permission.
Can I save a macro-enabled workbook as a standard .xlsx file?
Yes, but doing so will permanently remove all macros and VBA code from the document. To do this, go to File > Save As, and choose 'Excel Workbook (*.xlsx)' from the file type dropdown.
What happens if I forget the password to a protected read-only workbook?
If the workbook is protected with a password to modify, you will be forced to open it as read-only. Without the password, your only option is to use Save As to create a new, writable copy of the viewable data, though background macros might still be locked.
Does removing the read-only attribute guarantee macros will work?
No. Removing the read-only attribute only allows you to save changes to the file. To actually run the macros, you must also ensure they are enabled in Excel's Trust Center settings and that you have clicked 'Enable Content' upon opening the file.




