wzal
Mechanical
- Mar 18, 2004
- 35
Hi,
I am new to VBA programming and trying to write some code in VB editor of excel to look up table,find value and display in the TextBox on the userform.
I wrote the following code.But when I run it,it send me
Compile Error:
Sub or function not defined with Vlookup highlighted.
Could anyone tell me why?
I am new to VBA programming and trying to write some code in VB editor of excel to look up table,find value and display in the TextBox on the userform.
I wrote the following code.But when I run it,it send me
Compile Error:
Sub or function not defined with Vlookup highlighted.
Could anyone tell me why?
Code:
Private Sub CommandButton1_Click()
TextBox1 = VLookup(1, "A2:B8", 2)
End Sub
Thanks,