

You can usually work with the wildcard characters question mark (?) and asterisk (*) when specifying a text LookupValue. Description: The value WorksheetFunction.VLookup searches in the first column of TableArray.VBA Construct: Arg1 (Lookup_value) parameter of WorksheetFunction.VLookup.Description: Searches for a value in the first column of TableArray and returns a value in the same row but in column number ColumnIndex of TableArray.VBA Construct: WorksheetFunction.VLookup method.Description: Assigns the value returned by WorksheetFunction.VLookup to the VLookupResult variable.If you explicitly declare a variable to represent VLookupResult, ensure that the data type you use can handle the possible values returned by WorksheetFunction.VLookup. Description: Variable to which you assign the value returned by WorksheetFunction.VLookup.VLookupResult = WorksheetFunction.vlookup(LookupValue, TableArray, ColumnIndex, False) To do a VLookup and assign the result to a variable, use a statement with the following structure:

You can find additional VBA and Macro Tutorials in the Archives.

#4: VLookup Error Handling when Using the Application.WorksheetFunction Property.VBA Code to do a VLookup in Another Workbook.VBA Code to do a VLookup in Another Worksheet.
