You have to tell VB that this is an Excel function:
Application.WorksheetFunction.Vlookup(.......
You might find the macro recorder to be very useful in this case. Record a macro in which you enter the formula you want, and paste that code into your real module.
T. U.
Could you post your code for us to look at. Its a bit difficult to say otherwise. You should be able to use VLOOKUP and MATCH in VBA.
Gary
Hi --
Simple i feel to get the code to your formula
record, select cell and press F2 and enter VBA code is converted for you, so you can add it OK
But... be careful as VBA tends to convert to R1C1 offset not A1 A2 etc
Try it, or like has been said before post up your formula...
HTH
Jack