Hi everybody, I can not figure out why this code keeps giving me the error...
"run time error '1004' Unable to get the Match property of the WorksheetFuncion class"
I'm just trying to loop though the values in Column C in sheet "DO NOT DELETE" and return the corresponding row number of the match in column B in sheet "Equity"
The code that is producing the error is...
[ SubjectRow = Application.WorksheetFunction.Match("C" & i, Sheets("Equity").Range("B:B"), 0)]
FYI the argument "C" & I, is producing the expected value ("11-320-R058271293") and I've copied and pasted this cell into the Equity sheet so I know it's there... and formatted exactly the same in column B. It should be matching to the value of cell B13, so the variable SubjectRow should equal 13 for this first part of the loop...
I've tried defining the variable SubjectRow as String, Long, Double, Integer... none of those seemed to make a difference.
I've Tried removing worksheetfunction, no change... I'm totally stumped.
Please tell me what I've done wrong...
Thanks,
Joe
"run time error '1004' Unable to get the Match property of the WorksheetFuncion class"
I'm just trying to loop though the values in Column C in sheet "DO NOT DELETE" and return the corresponding row number of the match in column B in sheet "Equity"
The code that is producing the error is...
[ SubjectRow = Application.WorksheetFunction.Match("C" & i, Sheets("Equity").Range("B:B"), 0)]
FYI the argument "C" & I, is producing the expected value ("11-320-R058271293") and I've copied and pasted this cell into the Equity sheet so I know it's there... and formatted exactly the same in column B. It should be matching to the value of cell B13, so the variable SubjectRow should equal 13 for this first part of the loop...
I've tried defining the variable SubjectRow as String, Long, Double, Integer... none of those seemed to make a difference.
I've Tried removing worksheetfunction, no change... I'm totally stumped.
Please tell me what I've done wrong...
Thanks,
Joe