Hi. I have some images which I have written code to group them when a command button is clicked. but it also groups the command button with the images- anyway around this? Heres my code?
Thanks
Private Sub CommandButton2_Click()
Sheets("Sheet2").Select
ActiveSheet.Shapes.SelectAll
Selection.ShapeRange.GROUP.Select
End Sub
the error says:
the specified parameter has an invalid value
runtime error 1004
<!-- / message -->
Thanks
Private Sub CommandButton2_Click()
Sheets("Sheet2").Select
ActiveSheet.Shapes.SelectAll
Selection.ShapeRange.GROUP.Select
End Sub
the error says:
the specified parameter has an invalid value
runtime error 1004
<!-- / message -->