How to Fix Excel XLSM Content and VBA Recovery Errors
Question details
The user encounters a content error when opening XLSM files in Excel, which strips the VBA project during the recovery process.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Opening macro-enabled workbooks (XLSM) containing VBA projects on a Windows PC.
- Observed behavior
- Excel displays 'We found a problem with some content' and removes the VBA project during recovery. The file works correctly on other computers, pointing to a local system or profile issue.
Before proceeding, ensure you have a secure backup copy of your XLSM file, and verify with your IT administrator if you need BitLocker recovery keys for system restarts.
Open Excel in Safe Mode to Disable Add-ins
Running Excel in Safe Mode disables third-party add-ins that might be interfering with XLSM and VBA content.
Often, conflicting third-party Excel add-ins can trigger false corruption warnings, prompting Excel to forcefully strip the VBA project. Safe mode isolates the application from these extensions.
Press the Windows key + R on your keyboard to open the Run dialog box.
Type 'excel /safe' into the Run box and press Enter or click OK.
In Safe Mode, go to File > Open and browse to your XLSM file. If it opens without the recovery error, navigate to File > Options > Add-ins to disable them one by one and identify the culprit.

Perform an Office Repair
Corrupted Microsoft Office installation files can cause macro-enabled workbooks to fail during the loading process.
Create a New Windows User Profile
A corrupted local user profile or restricted permissions can stop Excel from reading VBA components properly.
Try WPS Office to Open XLSM Files Safely
If Microsoft Excel continues to corrupt your VBA projects or gets stuck in a profile-related recovery loop, WPS Office serves as a highly compatible, lightweight alternative. It supports macro-enabled workbooks (.xlsm) and allows you to bypass MS Office-specific profile errors without paying for costly subscriptions.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open WPS Spreadsheets: Launch the application and select the 'Spreadsheets' module.
- 3. Load your XLSM File: Click 'Open', navigate to your macro-enabled workbook, and open it safely.

Frequently Asked Questions
Why does Excel say 'We found a problem with some content' in my XLSM file?
This error typically occurs when Excel detects corruption within the file's XML structure, encounters conflicting third-party COM add-ins, or faces a corrupted local VBA engine. Excel then attempts to strip the unreadable VBA parts to salvage the rest of the workbook data.
How can I recover my VBA project if Excel removed it?
If Excel has already completed the recovery process and saved over the file without the VBA project, the code is generally lost. You must restore a previous version from your backups, or copy a clean version from another computer where the file still works correctly.
What if I cannot start Windows in Safe Mode due to BitLocker?
If BitLocker encryption is enabled on your drive and you do not have the recovery key, you will be locked out of the Windows Safe Mode boot menu. You need to contact your IT administrator to temporarily suspend BitLocker or provide the recovery key to proceed.
Can I open XLSM macro-enabled files in WPS Office?
Yes, WPS Office supports opening, viewing, and editing Microsoft Excel files, including XLSM formats. To execute or edit the actual VBA macros, ensure you are using a version of WPS Office that includes VBA support.




