Sub FindShape() 'Find Exit button and delete it
Dim myShape
Dim currentWB As String
Dim currentWS As String
currentWB = ActiveWorkbook.Name
Workbooks(currentWB).Activate
Sheets("Sheet3").Select
On Error Resume Next
For Each myShape In ActiveSheet.Shapes
myShape.Select
If Selection.Characters.Text = "exit" Then
Selection.Delete ' Delete the shape
End If
Next
End Sub
|