![]() |
Application.Match Type mismatch error
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? |
Application.Match Type mismatch error
|
Application.Match Type mismatch error
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? |
Application.Match Type mismatch error
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... |
Application.Match Type mismatch error
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. |
Application.Match Type mismatch error
|
Application.Match Type mismatch error
|
Application.Match Type mismatch error
|
Application.Match Type mismatch error
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. |
All times are GMT +1. The time now is 04:42 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com