jdsouza
Board Regular
- Joined
- Jul 19, 2012
- Messages
- 105
Good day
Will others be able to ratify this observation? I've been writing Excel based software for years and have ignored speed of computations (brushed it under the carpet) until recently when even the 2 or 3 seconds the algorithms took seemed too long.
I've discovered that if I set the activewindow.scrollrow to 1, complete the calculations and bring the scrollrow back to what it was after the calculations, I can save a second out of the two seconds it took if I did not change the scrollrow.
For good measure, I also set the scrollcolumn to 1.
This is tested numerous times to make me certain that setting the scrollrow (and perhaps the scrollcolumn, too) to 1 speeds up the computations. BTW, all calculations are done in VBA and not as cells' formulae. That is, I take the cell values in about 50 rows into memory, process in VBA and show the results as values (with required formatting) in the corresponding cells.
So, has anyone else been troubled by slow computations and has changing the activecell and/or scrollrow help?
Regards
Will others be able to ratify this observation? I've been writing Excel based software for years and have ignored speed of computations (brushed it under the carpet) until recently when even the 2 or 3 seconds the algorithms took seemed too long.
I've discovered that if I set the activewindow.scrollrow to 1, complete the calculations and bring the scrollrow back to what it was after the calculations, I can save a second out of the two seconds it took if I did not change the scrollrow.
For good measure, I also set the scrollcolumn to 1.
This is tested numerous times to make me certain that setting the scrollrow (and perhaps the scrollcolumn, too) to 1 speeds up the computations. BTW, all calculations are done in VBA and not as cells' formulae. That is, I take the cell values in about 50 rows into memory, process in VBA and show the results as values (with required formatting) in the corresponding cells.
So, has anyone else been troubled by slow computations and has changing the activecell and/or scrollrow help?
Regards