A Windows expression such as Environ("TEMP") & "\" & fileName does not describe a valid macOS location. PowerPoint for Mac needs a real, accessible POSIX path with forward slashes, and the slide must stop following the master background before a custom picture can appear.
Why the Windows PowerPoint Path Fails on macOS
Windows and macOS store temporary files in different locations and use different path separators. Office for Mac also runs in a sandbox, so a syntactically correct path can still fail if PowerPoint has not been granted access to the file.
Use a POSIX Image Path with UserPicture

- Place the PNG in a folder PowerPoint can access, or let the user select it with Application.FileDialog(msoFileDialogFilePicker).
- Store the selected full path in a variable and confirm it uses forward slashes, such as
/Users/name/Documents/background_1.png. - Set
slide.FollowMasterBackground = False, then callslide.Background.Fill.UserPicture imagePath. - Run the macro on one slide, save a copy of the presentation, reopen it, and confirm the picture remains attached.
Keep One Macro for Windows and Mac
Use conditional compilation with #If Mac Then and #Else. Build or select a POSIX path in the Mac branch; use the Windows TEMP path and backslash only in the Windows branch. Do not pass the Windows path into the shared UserPicture call.
Check Image Access and Slide Master Behavior
If the method still fails, confirm the PNG exists at the exact path and that PowerPoint has permission to open it. Also verify that the target presentation and slide index are correct and that no later code restores FollowMasterBackground.
Use WPS Presentation for Slides, but Keep the VBA Macro in PowerPoint
WPS Office cannot directly repair a PowerPoint-for-Mac VBA path or promise identical VBA object-model behavior. Use Microsoft PowerPoint to validate this macro.
For everyday slide editing, WPS Presentation is a free, lightweight alternative with a familiar interface for common PPTX files, layouts, images, transitions, and WPS AI-assisted drafting. WPS Office also handles common DOCX, XLSX, and PDF work in the same suite. Test macros, embedded objects, custom fonts, and organization-managed add-ins before moving a production deck.

Set a PowerPoint Slide Background Image with VBA on Mac FAQs
Can Environ("USER") be used in PowerPoint for Mac VBA?
It may return the macOS user name in current Office builds, but you still need a complete POSIX path and permission to access that file.
Why must FollowMasterBackground be set to False?
A slide following the master uses the master background. Disabling it allows the slide-level picture fill to appear.
Should a Mac file path use a slash or backslash?
Use forward slashes for a POSIX path such as /Users/name/Documents/image.png. Backslashes are Windows separators.
Why does UserPicture fail even when the path looks correct?
Office sandbox permissions can block the file. Let the user pick the file or grant access to its folder, then retry with the selected path.




