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 & newfol, vbDirectory)) = 0...
If Len(Dir(sFilePath & newfol, vbDirectory)) = 0 Then
MkDir sFilePath & newfol & "\"
On Error GoTo UserForm1
Else
MsgBox ("Folder already exists please re enter new folder name")
'End
UserForm1.Show
MoveAndSave_Reports
End If
The above give me an error message: Compile error: Label not defined at "On Error GoTO UserForm1"