How would I adapt this code to do more the one shape at a time?
Code: Select all
Private Sub CommandButton5_Click()
If ActiveSheet.Shapes(1).Visible = True Then
ActiveSheet.Shapes(1).Visible = False
ElseIf ActiveSheet.Shapes(1).Visible = False Then
ActiveSheet.Shapes(1).Visible = True
End If
End Sub