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

vba vlookups

ResolvedVersion 2007

Varuni has attended:
Excel VBA Intro Intermediate course

VBA - vlookups

Can you use vlookups within VBA - at the moment i dont use VBA, just use combinations of vlookup etc in excel to get what i want.

RE: VBA - vlookups

Hi Varuni,

Thank you for your question.

The Vlookup worksheet function is available under the WorksheetFunction object in VBA.

You can use most built-in worksheet functions in a macro by calling the function as a method of the Application object or the WorksheetFunction object. So if you are trying to create a Vlookup then type:

worksheetfunction.vlookup(then the arguments)

I hope this answers your question.

Regards

Simon

RE: VBA - vlookups

Hi Varuni,

Thank you for your question. Your question about using Vlookups in VBA.

I replied to you early April with the following text:
---------------------------------------------------------------------
Hi Varuni,

Thank you for your question.

The Vlookup worksheet function is available under the WorksheetFunction object in VBA.

You can use most built-in worksheet functions in a macro by calling the function as a method of the Application object or the WorksheetFunction object. So if you are trying to create a Vlookup then type:

worksheetfunction.vlookup(then the arguments)

I hope this answers your question.

Regards

Simon
-----------------------------------------------------------------------

Can I confirm whether this response has answered your question?

Regards

Simon

Tue 21 Apr 2009: Automatically marked as resolved.

 

Training courses

Training information:

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

How to select certain data in an Excel 2010 workbook

If you want to select the correct data set in a page full of data, the most accurate and efficient way of doing this is to use the ''Shift and Click'' technique.

For example: If you want to select all data in cells A2 to E10, then click on cell A2, hold down the Shift key and click on cell E10 and all the data you want to see is highlighted.

Keep holding down the Shift key and you can move from cell E10 to any other cell in the spreadsheet.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.