Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to use the Application.Match call using two arrays.
The exact line is: e = Application.Match(query(i,0),tempquery,0) query(i,0) holds a Variant/String that looks something like "100010300106800000" tempquery is an array holding a series of similar values as strings. I supposed I could convert them all to values, but I think it drops trailing or leading zeros and that could screw up the match as well. Any suggestions? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This could be indicative that tempquery has more than 5461 elements.
-- Regards, Tom Ogilvy " wrote in message ups.com... I'm trying to use the Application.Match call using two arrays. The exact line is: e = Application.Match(query(i,0),tempquery,0) query(i,0) holds a Variant/String that looks something like "100010300106800000" tempquery is an array holding a series of similar values as strings. I supposed I could convert them all to values, but I think it drops trailing or leading zeros and that could screw up the match as well. Any suggestions? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tempquery is only one dimensional. And it contains about 12000 unique
items in the list. The only thing I could think of is that in the line e is dimensioned as a long while the items in query and tempquery are variant/strings.....but that shouldn't matter I would think... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought this limitation didn't exist in xl2000 and beyond....?
If it does, I guess I could break the tempquery into batches 5461 elements long (plus some leftover) and do the match that way. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you need to dim e as variant to catch the errorvalue when there is no match
: otherwise you will get a type mismatch error Charles ______________________ Decision Models FastExcel 2.1 now available www.DecisionModels.com " wrote in message ups.com... I thought this limitation didn't exist in xl2000 and beyond....? If it does, I guess I could break the tempquery into batches 5461 elements long (plus some leftover) and do the match that way. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Type Mismatch Error Need Help | Excel Programming |