Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've subsequently found that the procedure with the error isn't even used.
Thanks for your assistance. Barb Reinhardt "Jim Thomlinson" wrote: What it is looking for is the string " + myVar + " which makes absolutely no sense based on the declaration. I assume you did not write it? As a guess someone was recording a macro and typed in " + myVar + " in the find box. You need to create a loop which traveres all of the items in the array and do the find that way. Based on the code you have posted in the past you should be able to manage that (or get darned close). Make sure that you set a range object to the resutls of the find and then determine if the object is nothing... If you wnat more help just reply. -- HTH... Jim Thomlinson "Barb Reinhardt" wrote: I'm getting a Type Mismatch error at the + on this line. I'm not exactly sure what's supposed to be done here (I'm sure it's searching for something), so don't know why the + is here. Selection.Find(What:="" + myVar + "", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate It's dimensioned as follows: Public myVar() As String Can someone assist? Thanks, Barb Reinhardt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Conditional Formatting - Run Time Error '13' Type Mismatch Error | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
Help with odd type mismatch error | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming |