T
Todd Huttenstine
On Error GoTo ErrHandler2a
ABFileFrom2 = BS & "\" & f1x.Name
ABFileTo2 = ABL2 & "\" & f1x.Name
FileCopy ABFileFrom2, ABFileTo2
DoEvents
ErrHandler2a:
If Err.Number = 52 Then
Else
End If
Else
Resume Next
End If
Next
Hey guys above is my code (Error Handler). If it trys to
copy a file from or to an invalid file path I get an error
(Error type 52) so I set up an error to trap it. It works
on the first error but then when it gets here and there is
a 2nd error I get the debug screen that says error 52 -
the exact thing my error handler handled correctly the
first time. And I thought once it hit the next statment,
the error was cleared.
What do I do?
Thank you
Todd Huttenstine
ABFileFrom2 = BS & "\" & f1x.Name
ABFileTo2 = ABL2 & "\" & f1x.Name
FileCopy ABFileFrom2, ABFileTo2
DoEvents
ErrHandler2a:
If Err.Number = 52 Then
Else
End If
Else
Resume Next
End If
Next
Hey guys above is my code (Error Handler). If it trys to
copy a file from or to an invalid file path I get an error
(Error type 52) so I set up an error to trap it. It works
on the first error but then when it gets here and there is
a 2nd error I get the debug screen that says error 52 -
the exact thing my error handler handled correctly the
first time. And I thought once it hit the next statment,
the error was cleared.
What do I do?
Thank you
Todd Huttenstine