M
Montana DOJ Help Desk
Word 2000
I'm working on some error trapping routines for a set of macros that I've
created. This is the first time I've really tried to do a lot in terms of
error trapping. I've figured out how to use the properties of the Err
object to display a message box. The message box indicates to the user the
error number, description, the subroutine where the error occurred, and will
open up the Help topic on the error if the user clicks the button.
Now I want to make my dialog box a little more sophisticated. I want to
keep all the functionality that the message box currently has, and I want to
include buttons that will allow the user to keep or discard the data that
was being processed at the time the error was encountered. So I'm creating
a custom user form. I can pull in the text items (error number,
description, and subroutine name) without any problems.
But how do I pass the Help topic information to a button in my custom form?
Is there a way to place the vbMsgBoxHelpButton in my form so that I don't
have to mess with passing that information to a custom control?
Since this is my first real error trapping exercise, any general tips would
also be appreciated.
Thanks for any help that you can offer.
--Tom
State of Montana Department of Justice Help Desk
"Making the world a safer place."
I'm working on some error trapping routines for a set of macros that I've
created. This is the first time I've really tried to do a lot in terms of
error trapping. I've figured out how to use the properties of the Err
object to display a message box. The message box indicates to the user the
error number, description, the subroutine where the error occurred, and will
open up the Help topic on the error if the user clicks the button.
Now I want to make my dialog box a little more sophisticated. I want to
keep all the functionality that the message box currently has, and I want to
include buttons that will allow the user to keep or discard the data that
was being processed at the time the error was encountered. So I'm creating
a custom user form. I can pull in the text items (error number,
description, and subroutine name) without any problems.
But how do I pass the Help topic information to a button in my custom form?
Is there a way to place the vbMsgBoxHelpButton in my form so that I don't
have to mess with passing that information to a custom control?
Since this is my first real error trapping exercise, any general tips would
also be appreciated.
Thanks for any help that you can offer.
--Tom
State of Montana Department of Justice Help Desk
"Making the world a safer place."