I wrote a small VBA program on my laptop, a Monte Carlo simulation that ran in about 10 minutes. When I then ran it on my desktop, it appeared to not be executing, but "came to life" after about 10 minutes and executed. I tracked the difference to execution of a delete command that cleared the contents of a large range of cells.
However, it isn't a VBA issue. When I manually select the range, and press the Delete Key, it takes about 10 minutes to clear the contents of the range, with just the hourglass cursor indicating activity. Tried the following changes, with no improvement in manual times:
- changed to manual calculation
- removed all formulas from sheet which reference range
- removed all other sheets on workbook
But it still takes several minutes to clear the contents (contents are all numeric values, no contents, range is 32,000 rows by 17 columns.
If I add a new sheet, select a similar size range, and delete, it deletes nearly instantly (the same timeframe that the original command executes on the laptop).
Excel 2003 on both machines, both on windows XP, both updated within the last week. Laptop is the older, slower machine (single core at 2.26 GHz, 1.5 GB memory), compared to the desktop (quad core at 2.4 GHz, 3 GB memory).
Any ideas on what might be causing the slower execution on the desktop, and how to remedy?
Bookmarks