G
Guest
Hello I have error 2450 when I try to close the app. I want to disreguard or
ignore this error. How is this done? I tried this code in the close button of
the app and its taking me to the VBA code at this line in the code (Resume
Exit_cmdPreview_Click) What am I missing in the code and where would it go in
the code to get this to work? Thanks!!!
VBA Code:
Err_cmdPreview_Click:
If Err.Number = 2450 Then ' ignore cancel event error
MsgBox Err.Number & " - " & Err.Description
Else
Resume Exit_cmdPreview_Click
End If
End Sub
ignore this error. How is this done? I tried this code in the close button of
the app and its taking me to the VBA code at this line in the code (Resume
Exit_cmdPreview_Click) What am I missing in the code and where would it go in
the code to get this to work? Thanks!!!
VBA Code:
Err_cmdPreview_Click:
If Err.Number = 2450 Then ' ignore cancel event error
MsgBox Err.Number & " - " & Err.Description
Else
Resume Exit_cmdPreview_Click
End If
End Sub