Hello All,
I'm receiving the error message in subject in the following code:
Public Sub Err(ErrorID As Long, _
Optional AddInfo As String = "", _
Optional Source As String = "", _
Optional Log As Boolean = True)
If Log = True Then Me.Log MsgTypeError, ErrorID, AddInfo, Source
MsgBox Me.GetErrorDescription(ErrorID), vbCritical + vbOKOnly, "FTCM Error"
End <= this is where the error occurs
End Sub
- VBA.Err object is clean
- the code lies in worksheet in Excel 2002 named "Log"
- VBA.Err.Raise(Number:=513, Source:="Anything", Description:="Whatever") also raises the same error (not "Whatever" as I'd expect)
- I know I have overriden names "Err" and "Log", but renaming does not solve anything
Edit 2007-10-29 17:24: If I remove the "End" statement and place it into calling procedure after the Log.Err call, everything works as expected.
Does anyone have an idea, why this happens
Thanks in advance.