I have a wokbook with a VBA routine that reads in a bunch of data and uses a numerical algorithm to fit several functions to the data. When I run the routine after just opening Excel, it takes 61 seconds. If I then close the workbook and reopen it, it takes more than 5 minutes. In order to get back to the 61 second run-time, I have to close Excel and reopen the file. I am working with some fairly small arrays. I'm assuming something is still in memory.

Suggestions?