I want to run a macro in powerpoint that allows for the following steps:
- For every slides in the active presentation, select an area of the slide within the size dimensions
- Group all the objects (shapes, text boxes etc) but don't group images (emf, jpg, png) within the size dimensions
- Ungroup
I'm new to ppt vba. After doing some research so far I have one created for a selected object(s) on each of the slide.
Appreciate the help!
Public Sub ResizeSelected()
On Error Resume Next
Dim shp As Shape
If ActiveWindow.Selection.Type = ppSelectionNone Then
MsgBox "select a grouped", vbExclamation, "Make Selection"
Else
Set shp = ActiveWindow.Selection.ShapeRange(1)
With ActiveWindow.Selection.ShapeRange
.Width = 12.87
.Left = 0.23
.Ungroup
End With
End If
End Sub