View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] baha17@gmail.com is offline
external usenet poster
 
Posts: 80
Default Vlookup funtion in Userform

Hi All,
i really wonder why I cannot refer the textbox value in the userform
while using vlookup function in VBA.
For example:
' TextBox6 = Application.VLookup(Userform1.TextBox1.value,
Sheet4.Range("staff"), 3, False)
Any idea why above code does not work?

Thanks a lot
Baha