98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft excel course london - Excel
microsoft excel course london - Excel
Resolved · Low Priority · Version Standard
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
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Saving your Excel Spreadsheet as a CSV FileIn situations where you need to save your Excel spreadsheet as a CSV file, follow these simple steps. |