I am having an array of 70000 elements(vb6) and I need to place the array as an excel column.
Since each excel sheet has row limit of 66k I can’t do it.
I tried selecting the range with multiple worksheets but I am getting error.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Updated Code #1The code at top has been updated to
ObjExcel.Transposecan’t be used as a workaround to recuce the first dimension of the initial array as there are more than 65536 records inX)I have added an alternative code that dumps the initial 70K to a worksheet, then sets the 30K and 40K directly from the worksheet without looping (see
Updated Code #2)Updated Code #2Original CodeSomething like this will do it
The code below uses
INT()to handle arrays with odd recordsie 60001 records would be dumped
[Update code to show automation of Excel]