Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default How to handle automation error?

Have a .xla add-in and with one user only there is an automation error in
the Workbook_Open event of this
add-in.
The problem is that although there is an error handler
in this procedure it doesn't do anything and all that shows
is the message Automation error, error 440.
How would I catch this error?
This is a new installation of Excel XP. Previously on the same computer with
Excel 9 or 10 there was no
problem.

RBS

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default How to handle automation error?

Would really need to see the Workbook_Open procedure. Given the fact that
you get an automation error, I am surmising that you are somehow using
another application in your code. If you have set the reference to the
object library in VBA, and it was overwritten or moved in the new install of
XP, that might well explain why the error comes up - and also why it is not
handled by the error handler since this would be picked up as the module is
loaded and compiled, before it is ever run.

Check your references. If they are all OK then check any CreateObject
statements to see if the class that they are referencing still exists (and
check the version numbers for consistency with the new installation).
--
- K Dales


"RB Smissaert" wrote:

Have a .xla add-in and with one user only there is an automation error in
the Workbook_Open event of this
add-in.
The problem is that although there is an error handler
in this procedure it doesn't do anything and all that shows
is the message Automation error, error 440.
How would I catch this error?
This is a new installation of Excel XP. Previously on the same computer with
Excel 9 or 10 there was no
problem.

RBS


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default How to handle automation error?

Thanks for making that a bit clearer.
Yes, there are few ActiveX dll files involved and 2 other .xla files.
The problem is probably in one of the other .xla files as that is much more
complex with much more references.
Will report back when I know what the trouble was.

RBS

"K Dales" wrote in message
...
Would really need to see the Workbook_Open procedure. Given the fact that
you get an automation error, I am surmising that you are somehow using
another application in your code. If you have set the reference to the
object library in VBA, and it was overwritten or moved in the new install
of
XP, that might well explain why the error comes up - and also why it is
not
handled by the error handler since this would be picked up as the module
is
loaded and compiled, before it is ever run.

Check your references. If they are all OK then check any CreateObject
statements to see if the class that they are referencing still exists (and
check the version numbers for consistency with the new installation).
--
- K Dales


"RB Smissaert" wrote:

Have a .xla add-in and with one user only there is an automation error in
the Workbook_Open event of this
add-in.
The problem is that although there is an error handler
in this procedure it doesn't do anything and all that shows
is the message Automation error, error 440.
How would I catch this error?
This is a new installation of Excel XP. Previously on the same computer
with
Excel 9 or 10 there was no
problem.

RBS



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
handle error in IF ELSEIF statement Sabosis Excel Worksheet Functions 1 April 30th 09 05:06 AM
Error Handle PR[_3_] Excel Programming 3 August 10th 05 10:49 PM
How to handle error 8007000e Memory Error L. A. M. Excel Programming 6 June 28th 05 04:05 AM
Unknown where is the problem on the Runtime error - Automation error wellie Excel Programming 1 July 10th 03 08:12 AM


All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"