Hi,
I have a simple spreadsheet that uses Vlookup.
I used a textbox to search a data, use a button to search, then display the value on a label
it works okay, but when I search and value is not found.. I received an error when I clicked the button
"Run-time error '13':
Type mismatch
This is my code:
Private Sub CommandButton1_Click()
Sheets("Summary").Range("A3") = TextBox1.Value
Label1.Caption = Sheets("Summary").Range("A4")
Label3.Caption = Sheets("Summary").Range("A5")
End Sub
I'm planning to display "Record not Found" if no value is found on the search.
Thanks in advance
-L
Bookmarks