Fix VBA Shell Error 53 in PowerPoint 2016 for Mac
Question details
The user needs a PowerPoint VBA macro to find and launch a shell script after upgrading Office for Mac.

- Product
- Microsoft PowerPoint 2016 for Mac
- Device & OS
- macOS
- Scenario
- A VBA macro that worked in Office 2011 launches a shell script stored on the Mac.
- Observed behavior
- After upgrading to Office 2016 for Mac, the macro may return Error 53, File Not Found, particularly when the script is in a restricted folder.
Locate the shell script in Finder and check the path used by the macro. Confirm that the script and any files it needs are available on the Mac.
Move the script and update its VBA path
Use this approach when the script is stored in a folder that PowerPoint may not be allowed to access.
Office 2016 for Mac is sandboxed, so a path that worked in Office 2011 may no longer be accessible. Moving the script can help, but the location alone does not guarantee that the launch method or the script's other file access will work.
In Finder, locate the shell script referenced by the macro and confirm its exact filename and extension.
In Finder, choose Go > Go to Folder and check the user's Library/Application Scripts folder or an appropriate Microsoft application support or group container folder. Move the script to a location available to PowerPoint.
Open the VBA editor in PowerPoint and replace the old script path in the Shell command with the script's new full path. Ensure paths containing spaces are properly quoted.
Run the macro again in PowerPoint. If Error 53 remains, recheck the filename, full path, launch command, and access to the script and its dependencies.

Check whether the shell script runs separately
Use this check if the script opens in an editor or the macro still cannot launch it.
Work with PowerPoint presentations in WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface and support for Microsoft Office formats, making it easy to move presentation work between applications. It does not fix PowerPoint's macOS sandbox error, and VBA macro compatibility should be tested separately.

Frequently Asked Questions
Why did the macro work in Office 2011 but fail in Office 2016 for Mac?
Office 2016 for Mac uses application sandboxing, which can restrict access to locations that an Office 2011 macro used. Check the script's location and update the path in the VBA editor.
Why does my shell script open in Xcode instead of running?
Finder may associate the script's file type with Xcode. To test a trusted script, open Terminal and invoke the appropriate shell with the script's path instead of double-clicking the file.
How can I check whether the VBA path is correct?
Find the script in Finder and compare its full location and filename with the path in PowerPoint's VBA Shell command. Check spelling, the extension, and quoting around paths with spaces.
Does a successful Terminal test mean PowerPoint can run the script?
No. Terminal and PowerPoint can have different access under macOS sandboxing. Test the macro in PowerPoint and check any file access the script requires.




