comconrk
Programmer
- Jul 15, 2002
- 55
Several months ago I started a thread when my excel macro was running very slowly. Some of you gave me very good advice.
I have just upgraded to a new laptop and this macro is now running very slowly again.
The two things that I did several months ago, using your advice, were the followng
1. Application.Screen.Updating = False (I set it to true before exiting the macro)
2. wk = 0
For Each wksht_loop In ActiveWorkbook.Worksheets
wk = wk + 1
Worksheets(wk).EnableCalculation = False
Next wksht_loop
The workbook is set for manual calculation, but the sheet is definitely updating after each VBA command, which is causing the slowness.
What have I forgotten?
Thanks very much,
I have just upgraded to a new laptop and this macro is now running very slowly again.
The two things that I did several months ago, using your advice, were the followng
1. Application.Screen.Updating = False (I set it to true before exiting the macro)
2. wk = 0
For Each wksht_loop In ActiveWorkbook.Worksheets
wk = wk + 1
Worksheets(wk).EnableCalculation = False
Next wksht_loop
The workbook is set for manual calculation, but the sheet is definitely updating after each VBA command, which is causing the slowness.
What have I forgotten?
Thanks very much,