How to Fix VBA Editor Syntax Problems in Cloud-Saved Excel Files on Mac
Question details
The user is experiencing an issue where typing VBA code in Excel for Mac triggers premature syntax checks, causing the cursor to move and corrupting the line.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS
- Scenario
- Editing VBA code in a macro-enabled Excel workbook that is saved on OneDrive or another cloud service with AutoSave turned on.
- Observed behavior
- Excel's AutoSave feature triggers the VBA syntax checker before the line of code is completely typed, resulting in cursor displacement and interrupted coding.
Before proceeding, check your current Excel for Mac version number and temporarily save a local copy of your workbook to prevent data loss.
Update Microsoft Excel to the Latest Version
Installing the newest update can resolve known bugs related to AutoSave and the VBA Editor.
Microsoft frequently releases patches for Excel on macOS. If you are experiencing this AutoSave syntax bug on versions prior to 16.93, updating your software is the most effective first step.
Open Excel on your Mac, go to the top menu bar, click on 'Help', and select 'Check for Updates'.
If a newer version is available in the Microsoft AutoUpdate utility, click 'Update' and follow the prompts to install it.
Restart Excel, open your cloud-saved macro workbook, and type in the VBA Editor to see if the cursor jump persists.

Report the Persisting Issue to Microsoft Support
If you are on version 16.93 or later and still face the issue, reporting directly to Microsoft flags the bug for their engineering team.
Temporarily Disable AutoSave or Work Locally
A quick workaround to prevent background sync from interrupting your VBA coding.
Try WPS Office for a Stable and Lightweight Spreadsheet Experience
Tired of encountering frustrating software bugs and performance issues on Microsoft Office for Mac? WPS Office offers a free, highly compatible alternative with a familiar interface. It seamlessly handles complex spreadsheets and runs smoothly on macOS.
- 1. Download the Mac version: Visit the official WPS Office website and download the installer specifically designed for macOS.
- 2. Install WPS Office: Open the downloaded .dmg file and drag the WPS Office icon to your Applications folder to install it.
- 3. Open Your Spreadsheets: Launch WPS Office and directly open your existing Excel files to experience a seamless and stable alternative.

Frequently Asked Questions
Why does my cursor jump while typing VBA code in Excel for Mac?
This is a known bug where Excel's background AutoSave feature triggers the VBA syntax checker before you finish typing a line. This interrupts your input, highlights errors prematurely, and forces the cursor to move.
Does turning off AutoSave fix the VBA syntax checking bug?
Yes, as a temporary workaround. Disabling AutoSave prevents the continuous background sync from triggering the syntax check, allowing you to type your VBA code without interruption.
Where can I find my exact Excel build number on a Mac?
Open Excel, click on the 'Excel' menu in the top left corner of your screen (next to the Apple logo), and select 'About Microsoft Excel'. A window will appear displaying your current version and specific build number.




