Hi,
I'm querying an OLAP source using ADO from VBA with code similar to below :
Usually I dump the Cellset into an array and then dump to the worksheet in one pass.
This doesn't work with a big query (1m rows+) due to memory problems.
I tried looping through the CellSet and writing each worksheet cell. This is impractical due the number of cells.
Does anyone if there is a better way to load a CellSet to a worksheet?
I'm querying an OLAP source using ADO from VBA with code similar to below :
Code:
Set rs = New Cellset
With rs
.Open sQry, cnn
End With
Usually I dump the Cellset into an array and then dump to the worksheet in one pass.
This doesn't work with a big query (1m rows+) due to memory problems.
I tried looping through the CellSet and writing each worksheet cell. This is impractical due the number of cells.
Does anyone if there is a better way to load a CellSet to a worksheet?