On Error GoTo Defined_Label is one way or
[tt]
On Error Resume Next
Result = OverFlow_Calculation
If Err.Number <> 0 Then
'Do This
Else
'Do That
End If
[/tt]
BTW, if you are having overflow errors with a double then you could change your "Result" Variable to a variant and
[tt]
Result = CDec(Normally_With_A_Double_OverFlow_Calculation)
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.