Link to home
Start Free TrialLog in
Avatar of Bryce Bassett
Bryce BassettFlag for United States of America

asked on

PowerPoint VBA: Best way to push selected image to slide background?

I want to add a feature to a PowerPoint add-in (.ppam) created in PowerPoint 365, Windows 10.

The normal VBA procedure for setting a slide's background to photo (which I have used often) is something like: currentslide.Background.Fill.UserPicture (full URL of picture file).

Simple question: if I already have an image (on the surface of the slide) selected, is there a VBA method for "pushing" that image to the slide background?  The workaround would be to save the selected image as a file in a temporary location, then re-import that file as the background fill. Just wondering if there is a way which uses the image object directly instead of that 2-step process?

Avatar of John Korchok
John Korchok
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bryce Bassett


Thanks, John, for confirming.