Help with VBA Vlookup Function

I am trying to educate myself in VBA.  Specifically in the VLookup function.

I have attached a very simplistic spreadsheet.  I am  now getting the error "Unable to get the VLookup property of the WorksheetFunction class".

Any help is greatly appreciated.
Rick NorrisAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
If you are using VBA then use the .FIND method.

For your code try

    Sheet1.Range("F11") = Application.WorksheetFunction.VLookup(Sheet1.Range("F9").Value, Sheet1.Range("TestLU"), 3, False)

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Some variations other than what Roy has suggested you.....

You may use either of these two lines..

Also Named Ranges are used in the VBA code like Range("YourNamedRange).

Sub GetLU()
    On Error Resume Next
        Sheet1.Cells(11, 6) = WorksheetFunction.VLookup(Sheet1.Cells(9, 6), Sheet1.Range("TestLU"), 3, False)
        'Sheet1.[F11] = WorksheetFunction.VLookup(Sheet1.[F9], Sheet1.Range("TestLU"), 3, False)
End Sub

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.