Hi
I need to delete all Form Buttons on the Active Sheet whose name does not start with "Main". This is what I have at the moment, but obviously it isn't working - error message is "Object doesn't support this property or method".
Sub delbuttons()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp <> "Main*" Then
shp.Delete
End If
Next shp
End Sub
Hope someone out there can assist.
Kind Regards - Grant
I need to delete all Form Buttons on the Active Sheet whose name does not start with "Main". This is what I have at the moment, but obviously it isn't working - error message is "Object doesn't support this property or method".
Sub delbuttons()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp <> "Main*" Then
shp.Delete
End If
Next shp
End Sub
Hope someone out there can assist.
Kind Regards - Grant