Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Seeking help for Vlookup code VBA in EXCEL 2013

$
0
0

Hi 

Can someone help me on the following codes ?

Private Sub CheckButton_Click()

 Dim title As String

 SearchName = OccpyNameTextBox.Value

     title = Application.VLookup(SearchName, Table_DSTALIST, 2, False) 

MsgBox title

 End Sub

Seems like VBA don't recognise SearchName,  it always return error 1004

What is the correct VBA Vlookup statement to use ?  how to handle #N/A if it is not found


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>