I am currently writing complicated Excel VBA Code. The program itself
uses multiple named ranges to query the spreadsheet.
It roughly loops through 620 rows in a spreadsheet. Based on the
value of the first cell in that row, it creates a SQL statement to run
against a named Range on another spreadsheet. The results from the
SQL statement are then used to calculate 11 ratios.
This is causing Excel to die (I think directly due to RAM issues). Is
there a way in Excel VBA to force garbage collection? Do you have any
suggestions on a better way to structure the file?
When you hear this, I know the first thought is to use a DB, but it's
not an option.