microsoft excel course london - excel
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

microsoft excel course london - Excel

resolvedResolved · Low Priority · Version Standard

replyReply Thu 20 Dec 2007, 16:35Delegate Charlie said...

Charlie has attended:
Excel VBA Intro Intermediate course

Excel

How do I create a macro based on vlookups

For upcoming training course dates see: Pricing & availability

replyReply Thu 3 Jan 2008, 17:06Trainer Stephen said...

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

 

Excel tip:

Highlighting only Text cells

To select onlt text value cells in a spreadsheet, click on Edit-Go to(F5)


In the Go To dialog box, click Special.
In the Go To Special dialog box, select Constants.
Click OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard