VBA Excel 2010 VLOOKUP VBA Programming Method to Return Data from Table by String

preview_player
Показать описание
Code:
the_result = Application.WorksheetFunction.VLookup(12019, Worksheets("Sheet1").Range("A:G"), 3, False)

MsgBox the_result
Рекомендации по теме
Комментарии
Автор

A very uncluttered, to the point example of vlookup with code I could easily modify and use in my project immediately.  Thank you. Thank you. Thank you.

forts
Автор

What if I don't know the last column? Is there some way I can use the last row to the right instead of editing last column name every time?

riyaziqbal
Автор

how can I do a vlookup in vba with 2 search criterias and with using diffrent lookup sheets? Please, I need urgent help!

melishan
Автор

Msg box is good for debug but useless for majority of people uses of Vlookup

ohcrapitsmrG