I have an excel spreadsheet that downloads data from a MSSQL server. The data is grouped and a sub total done in VBA with a do while not rs.eof, loop
After the worksheet is populated with the recordset data (450 records) the recordset is set to nothing.
The problem I'm having is after about three or four refreshes (running the macro that gets the data) sometimes 6, the worksheet gets noticably slow on populating the worksheet. If I close the file and re-open it, it's fast again. The adodb recordset gets it's data through a stored procedure and that is real fast so the slow down is with excel.
Does anyone have an idea why it would slow down?
After the worksheet is populated with the recordset data (450 records) the recordset is set to nothing.
The problem I'm having is after about three or four refreshes (running the macro that gets the data) sometimes 6, the worksheet gets noticably slow on populating the worksheet. If I close the file and re-open it, it's fast again. The adodb recordset gets it's data through a stored procedure and that is real fast so the slow down is with excel.
Does anyone have an idea why it would slow down?