ADODB.RecordSet to Variant Array - why?

Jaymond Flurrie

Well-known Member
Joined
Sep 22, 2008
Messages
921
Office Version
  1. 365
Platform
  1. Windows
Situation shortly
1) I read from a book that "this way you can transfer a recordset to an array. I was like, "oh, ok, let's do it that way then".

2) I have 100k rows / 2400 columns of data in a text file that I need to process.

3) After I do this vArray=rs.GetRows, I begin to get errors by having empty lines in between the text file (in reality there's no empty lines, that's the error) and those lines have nothing different from the other lines in the source text file.

So my questions are as follows
1) Why to use a variant array instead of recordset, what's the big gain there?
2) What's the most likely place where the error of getting a sudden empty line to my variant array is? The transfer to the recordset or the transfer to the variant array?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top