Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello,
I am editing a macro in VB under Excel 2002. I have created this function verticale = Application.WorksheetFunction.VLookup(Range(cella) .Text, Sheets(foglio).Range(area), colonna, False) When I call it in my macro, it's so made. - cella is "A" & a progressive number (for...next) - foglio is a worksheet on the same file - area is a defined range in foglio (a named range) - colonna is a simple number, of course What I need to do is to say: if you don't find 'cella' in foglio!area look for it in another foglio!area (where you of course will find it). When the value in 'cella' is found in the first foglio!area it functions correctly. But if the value is not found, I get an error: Run-time error '1004' Vlookup property for the class WorksheetFunction not found (or similar, I get the message in italian). How could I solve the problem? Thank you. Alessandro |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOKUP problem | Excel Worksheet Functions | |||
VLOOKUP Problem | Excel Discussion (Misc queries) | |||
Vlookup problem | Excel Worksheet Functions | |||
VLOOKUP Problem | Setting up and Configuration of Excel | |||
VLOOKUP problem | Excel Discussion (Misc queries) |