PublicFunction PropertyTP(ByVal output As String, ByVal Name1 As String) OnErrorGoTo ErrorHandler Dim Property_temp As Double Property_temp = brProP_private(output, Name1) IfAbs(Property_temp) > 1E+30Then 'Return error message PropertyTP = get_error_message() Else PropertyTP = Property_temp EndIf ExitFunction ErrorHandler: ' 잘못된 문구가 들어오면 에러발생 If Err = 13Then ExitFunction EndIf MsgBox "The most recent error number is " & Err & ". Its message text is: " & Error(Err) ExitFunction EndFunction