Guys i keep getting error when textbox value didn't find any value on a range, anyone knows how fix this.
Private sub textbox1_AfterUpdate()
If textbox1.value = Worksheetfunction.Vlookup(textbox1,Sheet1.Range("A:A") , 1, False) then
Msgbox "Data Found"
Else
Msgbox "No Data Found"
End if
End sub
Private sub textbox1_AfterUpdate()
If textbox1.value = Worksheetfunction.Vlookup(textbox1,Sheet1.Range("A:A") , 1, False) then
Msgbox "Data Found"
Else
Msgbox "No Data Found"
End if
End sub