title: VBA - Excel - On Error goto userform
body: <p>When there is an error, I want to go back to my userform and change the information entered on the form and re pass it into the macro and then continue from: If Len(Dir(sFilePath &amp; newfol, vbDirectory)) = 0...</p>
  
  <pre><code>If Len(Dir(sFilePath &amp; newfol, vbDirectory)) = 0 Then
              MkDir sFilePath &amp; newfol &amp; "\"
              On Error GoTo UserForm1
          Else
              MsgBox ("Folder already exists please re enter new folder name")
              'End
              UserForm1.Show
              MoveAndSave_Reports
  End If
  </code></pre>
  
  <p>The above give me an error message: Compile error: Label not defined at "On Error GoTO UserForm1"</p>