title: Excel error dialogue still pops up even with error handling
body: <p>I seem to be having a unique problem that I have not had before and cannot find an answer through google.</p>
  
  <p>I wrote a little subroutine to simply open a specific workbook that contains the word "Control" in it. </p>
  
  <p><b>Problem</b>: despite having an error handler that works, I get a pop-up box from excel saying it could not open a workbook.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>Sub OpenControlSheet(index As Integer)
  Dim strFilePath As String
  Dim strFileName As String
  
  On Error GoTo ErrorHandler
  
  strPlan = arrPlanPeriods(index)
  
  ResumePoint:
  strFilePath = "S:\Misc. Budget\" &amp; strPlan &amp; "\" &amp; "*Control*"
  strFileName = Dir(strFilePath)
  ResumePoint2:
  Set wb = Workbooks.Open("S:\Misc. Budget\" &amp; strPlan &amp; "\" &amp; strFileName)
  
  ErrorHandler:
  If Err.Number &lt;&gt; 0 Then
      'Do stuff
  End if
  
  End sub
  </code></pre>
  
  <p>Basically what the error handler does is manipulate the file path until the correct name is found. For example, if "92 Pol" did not work, then try "92 Poll." But before trying the new path I always get the following error dialogue: </p>
  
  <p>"Could not open 'S:\Misc. Budget\92 Pol'"</p>
  
  <p>Then it goes through the error handler and opens the correct workbook.</p>
  
  <p>I thought if it goes through an error handler then I should not have any error dialogue boxes pop up. Any idea why this might be happening?</p>