![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Is there a way to suspend cell updates from VBA temporarily?
I am finishing up some VBA code that creates a report, it runs fine. But when I include formulas and analysis in the spreadsheet for this report, the VBA program runs VERY SLOW. The automatic cell updates between each data change are just too much. I want to turn cell updates off at the beggning, and turn them back on at the end. How can I do that? Thanks much, John |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Code:
Calculate
With Application
.Calculation = xlManual
End With
'the rest of your code
With Application
.Calculation = xlAutomatic
End With
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|