Fix Excel Macro File Not Saving or Uploading on Mac
Question details
A user is unable to save changes or generate an upload file using a legacy Excel 97-2003 macro-enabled workbook on a Mac, despite the file working perfectly on a Windows PC.

- Product
- Microsoft Excel
- Device & OS
- macOS Ventura 13.2.1
- Scenario
- Attempting to run a legacy Excel 97-2003 macro workbook to process data, generate a new upload file, and save local changes on an Apple Mac device.
- Observed behavior
- The macro file functions normally on a Windows PC but fails to save or execute its file generation scripts when run on Excel for Mac.
Ensure your macOS and Microsoft Excel are updated to the latest versions, and create a backup copy of your original Excel 97-2003 (.xls) file on your local drive before modifying it.
Convert the Legacy File to an XLSM Format
Legacy .xls formats often encounter compatibility issues on modern macOS. Converting to the newer .xlsm format can resolve saving and macro execution errors.
Launch Microsoft Excel for Mac and open your original .xls file.
Click on 'File' in the top Apple menu bar and select 'Save As'.
In the 'File Format' dropdown menu, select 'Excel Macro-Enabled Workbook (.xlsm)'.
Select a local folder on your Mac (avoid OneDrive or iCloud locations during this test) and click 'Save'.
Reopen the newly saved .xlsm file and attempt to run the macro again to see if it generates the upload file.

Enable Mac-Specific Macro Settings and Verify Permissions
Strict macOS security settings or file permission restrictions can prevent macros from generating or saving new files.
Modify Windows-Specific VBA Code for Mac
Macros created on Windows often use ActiveX controls or Windows-specific directory paths which do not exist on macOS, causing the script to fail when saving files.
Try WPS Office for Your Cross-Platform Spreadsheet Needs
If complex Microsoft Excel macros are causing persistent compatibility issues between Windows and Mac, consider using WPS Office for your daily tasks. It provides a lightweight, highly compatible environment for standard spreadsheets without the steep subscription costs.

Frequently Asked Questions
Why do some Excel macros work perfectly on Windows but fail on a Mac?
Excel for Windows and Excel for Mac operate on entirely different operating system architectures. Macros that rely on Windows-specific features like ActiveX controls, the Windows file system (which uses drive letters and backslashes), or external Windows libraries (DLLs) will inherently fail when executed on macOS.
How do I fix the 'Cannot save file' error when a macro tries to export data on Mac?
This usually occurs due to macOS sandboxing restrictions or incorrect file path formatting within the VBA code. Try saving the macro workbook locally to your Mac's Desktop or Documents folder (avoiding cloud-sync folders like OneDrive). Also, check the VBA script to ensure it uses Mac-appropriate forward slashes for file directories.
Is the Excel 97-2003 (.xls) format fully supported on modern MacBooks?
While modern Excel for Mac can open legacy .xls files, running complex or outdated macros in this format often causes instability or silent failures. It is highly recommended to convert and save the document as a modern Excel Macro-Enabled Workbook (.xlsm) to ensure maximum compatibility.
How do I securely enable macros in Excel for Mac?
Navigate to the top menu bar, click on 'Excel', select 'Preferences', and choose 'Security & Privacy'. From there, you can adjust your macro security settings. To protect your Mac from malicious scripts, only enable macros from sources you completely trust.




