Office for Mac Issues

How to Fix AppleScriptTask Errors in Excel for Mac on Big Sur

Muhammad TalhaMuhammad Talha Nov 2, 2026 869 views

Question details

Users experience an AppleScriptTask error when running older VBA workbooks that call AppleScript files in Excel for Mac.

How to Fix AppleScriptTask Errors in Excel for Mac on Big Sur
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.
Before you start

Verify that your AppleScript files are placed in the correct macOS sandbox directory (~/Library/Application Scripts/com.microsoft.Excel/) before attempting further fixes.

Solution 1Recommended

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.

1
Update macOS

Open System Preferences from the Apple menu, select Software Update, and install any available system updates for Big Sur.

2
Update Microsoft Office

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.

Update macOS and Microsoft Office to the Latest Versions
Beta Software Warning: Avoid using beta versions of macOS or Office unless you are willing to accept potential new bugs or script compatibility issues.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the macOS version.
  2. 2. Install WPS Office: Open the downloaded .dmg file and drag the WPS Office icon to your Applications folder.
  3. 3. Open Your Spreadsheets: Launch WPS Office and seamlessly open your existing Excel workbooks without compatibility worries.
Fully compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Lightweight design that runs smoothly on macOS Big Sur and newer versions.Familiar user interface with a tabbed workspace to handle spreadsheets, documents, and PDFs in one window.Free to download and use with comprehensive built-in spreadsheet functions.
microsoft office alternative - wps office

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.