Return an error message string for the last error.
Public Function errFormatErrorMessage ( _ Optional nErrCode As Long = 0, _ Optional szMsg As String = "" _ ) As String
Debug.Print errFormatErrorMessage(11) Error (11): Parameter out of range (OUT_OF_RANGE_ERROR) Debug.Print errFormatErrorMessage(11, "User message!") ERROR: User message! (11): Value out of range (OUT_OF_RANGE_ERROR)