Quote:
Originally Posted by Living the Dream
You could try the following:
In as much as it is purely asthetic, I prefer to use the following which
keeps everything together in a nice collection rather than address each
line of:
Application This, or Application That, you can use the With statement
and include each point.
You would use the following to turn off.
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
.EnableEvents = False
.DisplayAlerts = False
.AlertBeforeOverwriting = False
End With
Then use this to reset them when exiting the routine.
With Application
.Calculation = = xlCalculationAutomatic
.ScreenUpdating = True
.EnableEvents = True
.DisplayAlerts = True
.AlertBeforeOverwriting = True
End With
HTH
Mick.
|
Thanks, Mick. I appreciate the help.