polarisking
Member
I have about 8,000 rows with 94 columns. I read the entire range into an array, then process the array 1 by 1 writing out to another array until I hit the end. Based on logic applied to one of the fields in the array, I may end up replicating one row in the first array multiple time into the second array.
So far, so good. Because the row count of the second array is always >= the row count of the first array, I need to REDIM the second array - but I cannot because you can only REDIM the last dimension, right? So, I write the first array into a transposed version of the first, then at the end I transpose the second so it comes out looking like the original 94 column format. Should work, right? Evidently, there's a known bug with TRANSPOSE that "breaks" when any field's length > 255. I cannot lose any of the contents of these "long" fields.
How do I get the second array to a size (# of actual rows) where I can move it to a range without having to transpose and consequently end up with the TYPE MISMATCH 13 error? Row 21 in Sheet1 is the offender - Column AE.
So far, so good. Because the row count of the second array is always >= the row count of the first array, I need to REDIM the second array - but I cannot because you can only REDIM the last dimension, right? So, I write the first array into a transposed version of the first, then at the end I transpose the second so it comes out looking like the original 94 column format. Should work, right? Evidently, there's a known bug with TRANSPOSE that "breaks" when any field's length > 255. I cannot lose any of the contents of these "long" fields.
How do I get the second array to a size (# of actual rows) where I can move it to a range without having to transpose and consequently end up with the TYPE MISMATCH 13 error? Row 21 in Sheet1 is the offender - Column AE.