title: What is good practice for writing closing statements in the end of procedures and in error handlers?
body: <p>I find myself writing some commands both at the end of procedures and in error handlers. On top of it all I find myself writing these lines in all of my functions:</p>
  
  <pre><code>    Application.Cursor = xlDefault
      Application.ScreenUpdating = True
  
  ErrHandler:
      MsgBox ("An unforseen problem has occured. Please contact support.")
      Application.Cursor = xlDefault
      Application.ScreenUpdating = True
  End Sub
  </code></pre>
  
  <p>I'm feeling like I'm repeating myself more than I should. Is there any better practice for writing these kinds of "standard" lines at the end of procedures and in error handlers?</p>