Fix PowerPoint VBA Shape Locked Property Error 438 on Mac
Question details
The user is encountering a Run-time error 438 when executing a VBA macro that attempts to lock a shape in a PowerPoint presentation.

- Product
- Microsoft PowerPoint
- Device & OS
- Mac
- Scenario
- Running a VBA macro containing the statement mySlide.Shapes("test").Locked = True to lock a specific shape on a presentation slide.
- Observed behavior
- The macro throws a Run-time error 438 because the Locked property is not supported across all PowerPoint versions, particularly failing on Mac platforms and non-subscription editions.
Verify your exact Microsoft Office version and license type (Microsoft 365 subscription vs. perpetual license like Office 2021), as VBA feature support varies heavily between them.
Verify Platform Compatibility and Test on Windows
Determine if the issue is a platform-specific limitation by testing the macro on a fully updated Windows environment.
The Shape.Locked property in PowerPoint VBA is highly version-dependent. While it works reliably on Microsoft 365 subscription versions for Windows, it is frequently absent in PowerPoint for Mac and perpetual Windows versions like Office 2021.
Transfer your presentation file containing the VBA macro to a Windows PC running the latest version of a Microsoft 365 subscription.
Execute the script. If the shape locks successfully on Windows but fails on Mac, it confirms a platform limitation rather than a syntax error.
On your Mac, open PowerPoint, click 'PowerPoint' in the top menu bar, and select 'About PowerPoint' to verify your build and license type.
Since this is a known limitation, go to 'Help' > 'Feedback' in PowerPoint for Mac to request support for the Shape.Locked property in future Mac updates.

Implement Error Handling in Your VBA Code
Modify your VBA macro to gracefully bypass the error on unsupported platforms instead of crashing the entire script.
Try WPS Office for a Seamless Presentation Experience
Dealing with VBA platform inconsistencies can disrupt your workflow. Consider switching to WPS Office, a highly compatible, cross-platform alternative that makes editing presentations smooth and reliable.
- 1. Download WPS Office: Visit the official WPS Office website and download the installer for your Mac or Windows computer.
- 2. Open your presentation: Launch WPS Presentation and easily open your existing .pptx files to continue working seamlessly.

Frequently Asked Questions
Why does the Shape.Locked property throw Run-time error 438?
Run-time error 438 means 'Object doesn't support this property or method'. In PowerPoint VBA, this happens because the Shape.Locked property is not implemented in certain software builds, notably PowerPoint for Mac and non-subscription editions like Office 2021.
Can I lock shapes in PowerPoint for Mac without using VBA?
Native shape locking is restricted in standard PowerPoint views. However, a common workaround is to cut the shape and paste it into the Slide Master view. This prevents normal users from selecting or moving the shape during regular editing.
Is Microsoft 365 required to use the Shape.Locked property?
Generally, yes. User testing confirms that the Shape.Locked property is reliably supported in Microsoft 365 subscription versions on Windows, while perpetual standalone licenses often lack this specific VBA capability.
Will Microsoft fix this VBA limitation on Mac?
Microsoft updates its software based on user demand. Submitting a feature request via the 'Help > Feedback' menu in PowerPoint for Mac is the best way to notify their development team about this compatibility issue.




