troubleshooting Question

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

Avatar of Bryce Bassett
Bryce BassettFlag for United States of America asked on
VBAMicrosoft PowerPoint
2 Comments1 Solution5 ViewsLast Modified:
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?

Thanks!
ASKER CERTIFIED SOLUTION
John Korchok
Production Manager
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros