Replace Word's Error Message

K

Kevin R

I have 2 dot files that load from the startup path. Both
contain macros. One file needs to call a macro from the
other file. I have this part working fine. What I want
is if the user runs the macro that calls the macro from
the other file to have a custom error message that says
file x is missing and must be loaded in the startup path.
I've tried creating my own message using the "on error
goto" statement but it isn't working. Word keeps kicking
up its message "compile error in hidden module". Any way
to stop this message and show my own so that the user
actually knows what to do to correct it? Thanks.
 
K

Kevin R

I probably should have clarified a bit more. The error
would only occur when the dot file with the macro that is
being called is missing, otherwise no error would be
generated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top