Dear all,
I want to have a massage instead of Debug message to the user when running time error 9 . When running error, message was shown instead of Debug box. In the other side, message was also shown in normal run. What is missing in my Marco? Please help me to point out? Much Thanks.
Linda Lo
Sub myMacro()
Dim str As String
On Error GoTo myError
Sheets("str").Activate
myError:
MsgBox "Date of record was incorrect for the file, please replace it!"
End Sub
I want to have a massage instead of Debug message to the user when running time error 9 . When running error, message was shown instead of Debug box. In the other side, message was also shown in normal run. What is missing in my Marco? Please help me to point out? Much Thanks.
Linda Lo
Sub myMacro()
Dim str As String
On Error GoTo myError
Sheets("str").Activate
myError:
MsgBox "Date of record was incorrect for the file, please replace it!"
End Sub