Hi. I have the following code but i get erro 438 : Object doesnt support this property/method.
I have multiple pictures in the worksheet which on clicking the button i need to select all and group them. However the number of pictures changes all the time so i need to select all and cant specify an array.
Private Sub CommandButton2_Click()
Sheet2.Shapes.SelectAll
Selection.ShapeRange.Group.Select
End Sub
I have multiple pictures in the worksheet which on clicking the button i need to select all and group them. However the number of pictures changes all the time so i need to select all and cant specify an array.
Private Sub CommandButton2_Click()
Sheet2.Shapes.SelectAll
Selection.ShapeRange.Group.Select
End Sub