title: VBA + Excel + Try Catch
body: <p>In VBA, I'm doing a simple script that records a version of a spreadsheet being used.</p>
  
  <pre><code>Private Sub Workbook_Open()
      version = "1.0"
  
      Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
      URL = "&lt;WEB SERVICE&gt;"
  
      objHTTP.Open "POST", URL, False
      objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
      objHTTP.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
      objHTTP.send ("version=" + version)
  End Sub     
  </code></pre>
  
  <p>The process works fine, but...</p>
  
  <p>I'm trying to do a try catch so if the web host is offline, instead of showing a run time error I catch it and suppress.</p>
  
  <p>What is the best way to try catch in VBA so there is no error message shown?</p>