Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
esI have loaded a bunch of cell address into a 1D array. I am now checking a
current cell address to see if it is in the array of preloaded address using a MATCH function. If it is not in the array the ISERROR function wrapped around the MATCH should be TRUE. The line of code below is failing with a 1004 Error ("Unable to get Match property of the worksheet function class" If Not IsError(Application.WorksheetFunction.Match(cell.P arent.Name & "!" & cell.Address, UniqueCellAddressArray3, 0) - 1) Then 'Do something....................... Else When I check in my immediate window I get: ?cell.Parent.Name & "!" & cell.Address Colour Legend!$E$2 I have also checked the array and it is in fact loaded with data: ?UniqueCellAddressArray3(1) Unique Formulas!$D$2 And when I check the value that I know exists in the array I get an answer: ?Application.WorksheetFunction.Match("Unique Formulas!$D$2", UniqueCellAddressArray3, 0) - 1 1 Why is the line of code not trapping the Error and generaing a TRUE for my ISERROR statement with my current address? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array (MATCH function?) | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
1:1 as the Array using the MATCH function | New Users to Excel | |||
Match as well as does not match array function | Excel Discussion (Misc queries) | |||
Array MATCH function for VBA | Excel Programming |