Fix VBA Error 424: PowerPoint CustomLayouts in Excel for Mac
Question details
The user needs to successfully run an Excel VBA macro that applies PowerPoint custom slide layouts on macOS without triggering an object error.

- Product
- Excel for Mac
- Device & OS
- Mac
- Scenario
- Automating PowerPoint slide creation and custom layout application using Excel VBA on a Mac device.
- Observed behavior
- The VBA code works correctly on Windows but returns a runtime error 424 (Object required) on Mac, where the PowerPoint object model appears incomplete in the object browser.
Before modifying your code, ensure you have saved a backup copy of your Excel workbook with macros enabled (.xlsm) to prevent any accidental loss of your original script.
Implement Late Binding for PowerPoint Variables
Use generic Object declarations and late binding to bypass the platform-specific library reference issues causing the runtime error on Mac.
When VBA code explicitly references the PowerPoint object model (early binding), the Mac version of Office may fail to recognize it correctly, causing Error 424. Switching to late binding removes this strict library dependency.
In Excel for Mac, press Option + F11 or navigate to the Developer tab and click 'Visual Basic' to open the VBA editor.
Locate your PowerPoint variable declarations. Change explicit types like 'PowerPoint.Application' and 'PowerPoint.Presentation' to the generic 'Object' type (e.g., Dim PPPres As Object, Dim PPSlide As Object).
Use the CreateObject function to launch or bind to the PowerPoint application at runtime (e.g., Set PPTApp = CreateObject("PowerPoint.Application")).
Reference the custom layout directly through the presentation's design and slide master. For example, use: Set PPSlide = PPPres.Slides.AddSlide(1, PPPres.Designs(1).SlideMaster.CustomLayouts(1)).

Experience Seamless Cross-Platform Work with WPS Office
Tired of encountering platform-specific VBA runtime errors in Microsoft Office for Mac? WPS Office provides a lightweight, unified suite for spreadsheets, presentations, and documents that works seamlessly across Windows, Mac, and Linux.
- 1. Download the Installer: Visit the official WPS website and download the Mac version of WPS Office.
- 2. Install WPS Office: Open the downloaded file and drag the WPS Office icon to your Applications folder.
- 3. Open Your Files: Launch WPS Office and open your existing spreadsheets and presentations to enjoy a stable experience.

Frequently Asked Questions
What does runtime error 424 mean in Excel VBA?
Runtime error 424 'Object required' means the VBA macro is attempting to use a method or property on an object that hasn't been properly defined or set. This frequently happens on Mac when a script relies on Windows-specific object libraries.
What is the difference between early binding and late binding in VBA?
Early binding sets the specific object type (like PowerPoint.Application) at compile time, requiring a strict library reference. Late binding declares the variable generically as an 'Object' and resolves it at runtime, which avoids missing reference errors on different operating systems.
Why does my macro work perfectly on Windows but fail on macOS?
Office for Mac and Office for Windows have distinct underlying architectures. Macros that rely on Windows-specific COM automation or explicit object model libraries often encounter missing or incomplete references on macOS.




