title: VBScript -- Using error handling
body: <p>I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.</p>
  
  <p>For example,</p>
  
  <pre>
  On Error Resume Next
  'Do Step 1
  'Do Step 2
  'Do Step 3
  </pre>
  
  <p>When an error occurs on step 1, I want it to log that error (or perform other custom functions with it) then resume at step 2. Is this possible? and how can I implement it?</p>
  
  <p>EDIT: Can I do something like this?</p>
  
  <pre>
  On Error Resume myErrCatch
  'Do step 1
  'Do step 2
  'Do step 3
  
  myErrCatch:
  'log error
  Resume Next
  </pre>