VBA & Macro Problems

Fix Corrupted Accented Characters in Excel VBA on Mac

Ayan MasoodAyan Masood Oct 21, 2026 869 views

Question details

Users experience corruption of French accents in VBA strings when saving XLSM files via SharePoint and opening them in Excel for Mac, resulting in the removal of the vbaProject.bin file.

How to Fix Corrupted Accented Characters in Excel VBA Files Saved to SharePoint
Product
Microsoft Excel for Mac
Device & OS
Mac
Scenario
Saving an XLSM file containing accented characters in VBA scripts to SharePoint, and subsequently opening it on a Mac.
Observed behavior
Excel attempts to repair the file upon opening, but ultimately removes the vbaProject.bin file, permanently breaking the macros.
Before you start

Before applying any workarounds, ensure you have a secure local backup of your original XLSM file containing the intact VBA project to prevent permanent loss of your macro code.

Solution 1Recommended

Disable AutoSave in Excel Preferences (Temporary Workaround)

Disabling AutoSave prevents Excel from automatically syncing the broken VBA strings to SharePoint, preserving your macros while the bug is investigated by Microsoft.

This issue is a known behavior where SharePoint synchronization on Mac mishandles the encoding of accented characters in VBA modules. By turning off AutoSave by default, you force the file to save locally first, bypassing the real-time sync mechanism that triggers the corruption.

1
Open Excel Preferences

Launch Microsoft Excel on your Mac. Click on the 'Excel' menu in the top Apple menu bar and select 'Preferences'.

2
Navigate to Save Settings

In the Preferences window, click on the 'Save' icon located under the Sharing and Privacy section.

3
Turn Off Default AutoSave

Locate the checkbox labeled 'Turn on AutoSave by default' and clear it. This will prevent files from automatically syncing to SharePoint or OneDrive upon opening.

4
Work Locally

Save your XLSM files to a local directory on your Mac. Only upload the finalized version to SharePoint manually via a web browser to avoid real-time sync corruption.

Disable AutoSave in Excel Preferences (Temporary Workaround)
Submit Feedback to Microsoft: Report the problem to the Excel development team through the Microsoft Excel Feedback Portal (select the Mac category) so the issue can be officially investigated and patched.
Free Microsoft Office alternative

Try WPS Office for Reliable Spreadsheet and Macro Editing

If you are experiencing frustrating SharePoint sync bugs and VBA corruption with Microsoft Excel for Mac, consider switching to WPS Office. It provides a highly compatible, lightweight, and free alternative that handles complex spreadsheets without forced sync issues.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite for Mac.
  2. 2. Open Your XLSM File: Launch WPS Spreadsheets, click on Open, and select your local Excel macro-enabled workbook.
  3. 3. Edit Without Sync Issues: Edit your spreadsheets locally and securely without worrying about forced cloud synchronization corrupting your files.
Highly compatible with Microsoft Excel formats, including .xlsx and .xlsm.Seamless offline editing without forced auto-sync or character encoding corruption.Familiar user interface ensuring easy adoption and fast migration.Supports advanced spreadsheet operations and a robust environment for everyday tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my XLSM file show a 'vbaProject.bin removed' error on Mac?

This error occurs when Excel detects corruption in the VBA project, often caused by encoding issues with accented characters when syncing via SharePoint on a Mac. To allow the workbook to open without crashing, Excel removes the corrupted VBA project file entirely.

Can I recover the deleted VBA macros after Excel repairs the file?

No. Once Excel removes the vbaProject.bin file during its automated repair process, the macros cannot be recovered from that specific file. You must restore your VBA code from a previous uncorrupted local backup.

Does this corrupted accented character issue affect Excel for Windows?

No, this specific bug involving corrupted accented characters (like French accents) during SharePoint sync primarily affects Excel for Mac users. Windows versions of Excel typically handle these encodings correctly when syncing with SharePoint.