Thread: Visual Basic
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JS[_4_] JS[_4_] is offline
external usenet poster
 
Posts: 14
Default Visual Basic

yep you can turn off the updating

put the following at the beginning of your code

Application.ScreenUpdating = False
there is no need to set it to true as this is done automatically when macro
finishes.

you may also want to use the following if your spreadsheets contain lots of
formulas

application.Calculation = xlCalculationManual
this stops excel recalculating formulas each time it changes something -
however you do need to set this back to automatic at the end of the macro

application.Calculation = xlCalculationAutomatic