I was hoping someone could point out where I am going wrong with this code. I am using it to search for a shape on a worksheet. I want to trigger a message when that shape does not exist. With the code below, why does it go to the error handler when the shape actually does exist?
Private Sub CommandButton1_Click()
On Error GoTo errHandler
Dim SearchFor
SearchFor = UCase(InputBox("Search: "))
ActiveSheet.Shapes.Range(Array(SearchFor)).Visible = True
errHandler:
MsgBox "No Reference Found For: " & SearchFor
End Sub