countryfan_nt
Well-known Member
- Joined
- May 19, 2004
- Messages
- 758
Hello friends, hope all is well!
please help me with the code below, I wish to name the Grouped shapes "Group1" please.
because everytime I run the code, I get a different name.
Thank you very much!
please help me with the code below, I wish to name the Grouped shapes "Group1" please.
because everytime I run the code, I get a different name.
Thank you very much!
VBA Code:
Sub GroupShapes(tp As Boolean)
Dim ws As Worksheet
If tp Then
Set ws = Sheets("fshap")
ws.Activate
ws.Shapes.SelectAll
Selection.Group
Selection.ShapeRange.IncrementRotation 180
DoEvents
ws.Shapes(1).IncrementRotation 180
End If
End Sub