Error

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

Guest

My macros disable screenupdating.
Is it possible to enable the screen updating if an error
occurs in my code due to a situation in the spreadsheet
prior to displaying the debug situation.
 
In simple code you could use something like

Sub test()
On Error GoTo myerror
With Application
.ScreenUpdating = False
Worksheets("DoesntExist").Select
.ScreenUpdating = True
End With

myerror:
Application.ScreenUpdating = True

End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top