How to Fix AppleScriptTask Errors in Excel for Mac on Big Sur
Question details
Users experience an AppleScriptTask error when running older VBA workbooks that call AppleScript files in Excel for Mac.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS Big Sur
- Scenario
- Running older VBA workbooks containing AppleScript calls after a major macOS upgrade.
- Observed behavior
- Excel throws an "Invalid Procedure call or argument" or AppleScriptTask error, preventing the script from executing properly.
Verify that your AppleScript files are placed in the correct macOS sandbox directory (~/Library/Application Scripts/com.microsoft.Excel/) before attempting further fixes.
Update macOS and Microsoft Office to the Latest Versions
Ensuring both your operating system and Office suite are fully updated is the most reliable way to fix compatibility bugs introduced by major OS upgrades.
Major operating system upgrades like macOS Big Sur frequently introduce architectural changes that impact how third-party applications handle external scripts. Microsoft and Apple frequently release patches to address these integration issues.
Open System Preferences from the Apple menu, select Software Update, and install any available system updates for Big Sur.
Open Excel, navigate to the Help menu at the top of the screen, and click Check for Updates. Follow the Microsoft AutoUpdate prompts to install the latest Office version.

Recreate and Compile the AppleScript
Recent macOS security and architecture changes can invalidate older scripts. Creating a fresh script file often resolves the "Invalid Procedure call or argument" error.
Roll Back to a Previous Excel Version using Time Machine
If updates and script recreation fail, reverting to a previously working build of Excel can temporarily bypass the issue while you wait for an official patch.
Try WPS Office for a Seamless Mac Experience
Tired of dealing with complex compatibility issues and script errors in Excel for Mac? WPS Office offers a lightweight, highly compatible, and free alternative with a familiar user interface that runs smoothly on macOS without heavy scripting dependencies.
- 1. Download the Installer: Visit the official WPS Office website and download the macOS version.
- 2. Install WPS Office: Open the downloaded .dmg file and drag the WPS Office icon to your Applications folder.
- 3. Open Your Spreadsheets: Launch WPS Office and seamlessly open your existing Excel workbooks without compatibility worries.

Frequently Asked Questions
Why do AppleScriptTask errors happen after upgrading to macOS Big Sur?
Major macOS upgrades often introduce new security protocols and architecture changes. These updates can cause older AppleScript files or VBA calls to become invalid or blocked by sandbox policies, triggering 'Invalid Procedure call or argument' errors in Excel.
Where should I store AppleScript files for Excel on a Mac?
Due to strict macOS sandboxing rules, any AppleScript called by Excel's AppleScriptTask function must be placed in a specific, authorized folder: ~/Library/Application Scripts/com.microsoft.Excel/.
How do I report persistent AppleScript bugs in Excel for Mac?
If you continue experiencing script errors after updating, you can report the bug directly to Microsoft. Open Excel, click on the Help menu, and select the Feedback option to detail the issue.




