Hi, question about using vlookups in vba. I know that accessing many Excel functions requires code such as
but when using vlookups it'sCode:Application.WorksheetFunction.Count()
as opposed toCode:Application.VLookup()
When using the above code, with proper arguments within the lookup function, I get the following error:Code:Application.WorksheetFunction.VLookup()
So VLookups aren't part of this class, whereas functions like Count, CountA, etc are? If they are, what mistake have I made? If not, how can I tell which functions aren't part of this class?Code:Run-time error '1004': Unable to get the VLookup property of the WorksheetFunction class
Thanks in advance




Reply With Quote