Charlie has attended:
Excel VBA Intro Intermediate course
Excel
How do I create a macro based on vlookups
RE: Excel
Hi Charlie
Thankyou for your question
At its simplest you can invoke the Vlookup function in your code by using the Worksheetfunction property
For example
Range("A1").Value = WorksheetFunction.VLookup(arg1, arg2, arg3, [arg4])
Will return a lookup function with the relevant arguments into cell "A1" of the active worksheet.
You could either code the arguments directly or use variables that the user can define when the macro runs.
I hope this is helpful. If you have a specific task in mind, perhaps you could advise me of the details so I can look into it further
Regards
Stephen