Hi
Is it possible to have the GoTo lable in a different module?
The error handling below works, but I would like it to goto a different module if the error accrues.
Is it possible to have the GoTo lable in a different module?
The error handling below works, but I would like it to goto a different module if the error accrues.
Code:
Sub open_Folder
On Error GoTo NameFolder ' Check that path is Valid
If Dir(cnrl, vbDirectory) = vbNullString Then
MsgBox "Folder " & cnrl & " does not exist! Check path or create folder needed and run the macro again"
GoTo NameFolder
End If
Other code
NameFolder:
End Sub