Remove Picture Backgrounds in PowerPoint When VBA Cannot
Question details
The user wants to reproduce PowerPoint's Remove Background command for slide pictures using VBA or another automated method.
- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Removing backgrounds from pictures on PowerPoint slides, preferably through code.
- Observed behavior
- Setting FollowMasterBackground does not remove the background from a picture.
Identify the pictures that need background removal and check whether your PowerPoint version offers Picture Format > Remove Background. For automated processing, choose a tool or API that can return images with transparent backgrounds.
Remove a picture background using the PowerPoint ribbon
Use PowerPoint's built-in command when you can edit pictures individually.
PowerPoint VBA does not expose a direct property or method that fully reproduces the Remove Background command. FollowMasterBackground controls whether a slide follows the master's background; it does not edit pictures.
Open the presentation and click the picture whose background you want to remove.
On the Picture Format tab, select Remove Background.
Use Mark Areas to Keep or Mark Areas to Remove to adjust the proposed selection.
Select Keep Changes, then repeat the process for other pictures as needed.
Use an external tool or API for automated background removal
Use an image-processing tool, add-in, or API when you need to process multiple pictures programmatically.
Work with slide pictures in WPS Presentation
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing presentations. Its PowerPoint format compatibility makes it easier to move existing slide work to WPS, although it does not fix PowerPoint's VBA limitation.

Frequently Asked Questions
Does FollowMasterBackground remove a picture's background?
No. FollowMasterBackground controls whether a slide follows its master's background. It does not change the pixels or background of a picture on the slide.
Where is Remove Background in PowerPoint?
Select a picture on the slide, then open the Picture Format tab and choose Remove Background. Availability can depend on your PowerPoint version and the selected object.
Can VBA directly reproduce PowerPoint's Remove Background command?
PowerPoint VBA does not provide a direct property or method that fully reproduces the command. For automation, consider processing images with an external tool or API and then replacing them on the slides.
What image format should I use for a transparent background?
Use a format that supports transparency, such as PNG. After processing, insert or replace the picture in PowerPoint and check that the transparent areas appear as expected.




