screen refresh

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to have the spreadsheet screen refresh after the macor is
finished instead of during the macro run? Currently the changes to the
spreadsheet are reflected as the macro runs. I would like the user to see
just one refresh when the macro is complete.

Tom
 
Sub Whatever()
application.screenupdating = false
'Your code here
application.screenupdating = true
end sub
 
Application.ScreenUpdating = False
at the start, and just before the end
Application.ScreenUpdating = True
 
Dim Old_ScrUpdate as Boolean
'Begin get status of Property Application.ScreenUpdating into Old_ScrUpdate
Old_ScrUpdate=Application.ScreenUpdating
Application.ScreenUpdating = False

.....Do It...

'Get old status
Application.ScreenUpdating = Old_ScrUpdate

It's better!
 
Back
Top