Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

microsoft excel course london - excel

Forum home » Delegate support and help forum » Microsoft Excel Training and help » microsoft excel course london - Excel

microsoft excel course london - Excel

ResolvedVersion 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

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.