De has attended:
Excel VBA Intro Intermediate course
VBA
Can I use a vlookup type function in VBA.
Lookup function in VBA
Hi
The simple answer is Yes.
You need to create a variable to store the lookup value. The variable type must equal the type of data being returned.
The code would be:
Dim MyLookupValue As [Type]
MyLookupValue = Application.WorksheetFunction.VLookup(LookUp_Value, Table_Array, Col_index_num, Range_Lookup)
Hope this helps
Carlos