Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is so strange I'm not sure how to ask.
I have a procedure that opens each workbook in a given folder. With each workbook some code is applied. The workbook object and excel instance are destroyed and then the loop goes to the next workbook, etc. I have this statement that is applied to each workbook: CurrentRow = Evaluate("=MATCH(""" & Cell.Value & """,Survey_Questions, 0)+ROW(Survey_Questions)-1") 'Cell.Value is the string "Phone Support" 'Survey_Questions is a named range that contains as list of string values, including "Phone Support" So the formula would read: =MATCH("Phone Support",Survey_Questions,0)+ROW(Survey_Questions)-1 This formula returns the row where the Cell.Value is located. However, the statement produces a type mismatch error. If I run just the formula in the Immediate window and then paste that into the worksheet it works. Why am I getting the type mismatch error. Also, I know there are other ways to get the row. This is just an example. tod |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Type mismatch error in Find method | Excel Programming | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Type Mismatch Error when using InputBox Method | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming |