Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Handle Compile Errors
I have a bit of Macros/VB Code that requires various OCXs and such to be
installed. If the user doesn't install correctly, and the mscal.ocx is missing, for example, they will get "Compile Error in hidden module...". I would like to handle these errors myself and give an error message like "Run the Setup, Bozo." However the "On Error" only handles run-time errors, not compile errors. Is there a way to handle these errors? The only solution I've thought of so far is to actually check to see that, for example, the file c:\windows\system32\mscal.ocx exists. Since some of these things can be in more than one place, I'd prefer an error handling method. Thanks, Jeff |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Handle Compile Errors
You could run through the References collection and see if any references
are broken. It would depend on when the error occurs. -- Regards, Tom Ogilvy "JeffT" wrote in message ... I have a bit of Macros/VB Code that requires various OCXs and such to be installed. If the user doesn't install correctly, and the mscal.ocx is missing, for example, they will get "Compile Error in hidden module...". I would like to handle these errors myself and give an error message like "Run the Setup, Bozo." However the "On Error" only handles run-time errors, not compile errors. Is there a way to handle these errors? The only solution I've thought of so far is to actually check to see that, for example, the file c:\windows\system32\mscal.ocx exists. Since some of these things can be in more than one place, I'd prefer an error handling method. Thanks, Jeff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
PDFMaker and Compile Errors | Excel Discussion (Misc queries) | |||
compile errors | Excel Discussion (Misc queries) | |||
Compile Errors | Excel Programming | |||
REPOST: How to handle errors | Excel Programming | |||
REPOST: How to handle errors | Excel Programming |