I get an error in line 4 of this code. What’s wrong with this code?
Public Sub DeleteButtonControl()
Dim shp As Shape
For Each shp In ActiveSheet.Shapes
If shp.FormControlType = xlButtonControl Then ‘ << Error occurs here: Run-time error '1004'
shp.Delete
End If
Next shp
End Sub