Bryce Bassett
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?
Thanks!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER