I have a SQL statement which returns a number of rows and these are inserted into an array within VBA. I then loop through the array and paste into spreadsheet rows.
I am running out of memory, therefore I would like to do the pasting in batches.
I do not mind running the same SQL query each time to collect the data, so long as I can avoid the memory problems. How can I do this? In My SQL I used to use LIMIT, but here I want to say select the first... 1000? and then the next 1000 etc