I have a segment of code that contains
How do I show the default error message within the subroutine?public sub someroutine('parameters) on error goto localErr 'some code localErr: ' show the default error message exit sub end sub
I have a segment of code that contains
How do I show the default error message within the subroutine?public sub someroutine('parameters) on error goto localErr 'some code localErr: ' show the default error message exit sub end sub
I'm not sure what you want. If you want the system to throw an error, the Raise method is what you are looking for.
If not, a fuller explaination would be helpful.
I think I'm looking for the Raise method, although I've already figured out what the problem was. Thanks for your help.
Perhaps
If Err <> 0 Then MsgBox Err.Number & vbLf & Err.Description
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks