Here's a VBA macro that moves all rectangles to the background in PowerPoint:
Sub MoveRectanglesToBackground()
Dim shp As Shape
For Each shp In ActivePresentation.Slides(1).Shapes 'change slide number as per your need
If shp.Type = msoShapeRectangle Then
shp.ZOrder msoSendToBack
End If
Next shp
End Sub
This macro loops through all the shapes on the first slide of the presentation and checks if it is a rectangle. If it is, then it sends the shape to the back of the slide.
Note: This macro will only work for shapes that are strictly rectangles. If you have other shapes that have a rectangular outline or that overlap with rectangles, they may also be sent to the back.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-06-23 11:00:00 +0000
Seen: 9 times
Last updated: Apr 30 '22