title: Excel VBA - Skip sub or end sub IF Statement
body: <p>My code loops through cell values in a table and sees if document with same name exists.
  If it does exist, it will perform an action to open those files and import data.</p>
  
  <pre><code>If bProcess Then
      FileCounter = 0
      For Each folderIDX In PrimaryMergeFiles
          'If folderIDX.Name = Worksheets("Table").Range("A1:A13") Then
          Dim vTest As Variant
          vTest = Application.WorksheetFunction.VLookup(folderIDX.Name, Worksheets("Table").Range("A1:B13"), 2, False)
  
          'Creating Merge File
          If Not IsError(vTest) Then
              FileCounter = FileCounter + 1
  
              strStatus = "Creating file " &amp; FileCounter &amp; " of " &amp; PrimaryMergeFiles.Count &amp; ": " &amp; folderIDX.Name
              Application.StatusBar = strStatus
              CreateMergedFile wdApp, sPrimaryMergeDirectory, folderIDX.Name, sSourceFile, ClientCount, _
                  sClientSubDirectory, bClearHighlightings(ClientCount), bHome
              'ElseIf IsError(vTest) Then
          Else
              End Sub
          End If  
      Next
  End If
  </code></pre>
  
  <p>How can I skip the files or end the loop/sub when vTest is Error?</p>