L
Legacy 185509
Guest
I am using a button and using search to search for term "Resize to show all values" currently it is searching for term and selecting it, but if it is not found it shows me debug error
please help me fix this error, if result is not found I want it do nothing may be if result is not found select cell A1 or something like that here is my code
please help me fix this error, if result is not found I want it do nothing may be if result is not found select cell A1 or something like that here is my code
Code:
Private Sub CommandButton2_Click()
Range("C1").Select
Cells.Find(What:="resize to show all values", After:=ActiveCell, LookIn:= _
xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext _
, MatchCase:=False, SearchFormat:=False).Activate
End Sub