Help! "Automation Error, Catastrophic failure"

JJ59

New Member
Joined
Jul 30, 2002
Messages
14
Dear all,

Could someone tell me why I have such error message?

I wrote macros and user defined functions in my spreadsheet, which can also import dynamic data from quote system. In addition, I also select a new web query.

Everything looks fine but after I close the spreadsheet and reopen it, it just shows

"Automation Error, Catastrophic failure" and it seems that the spreadsheet got stock when calculating the UDF.

Please help! I think a macro and UDF should work well in the same spreadsheet, right?

Thanks very much,

jj
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
JJ59

Propably a reference that is broken/missing...

Open the VB-editor. Choose Tools | References... and uncheck any reference named ISMISSING.

HTH,
Dennis
 
Upvote 0
Thanks for the reply. Dennis

I can't 'find "ISMISSING" in the reference.

I'm using Excel 2000 with XP. I don't know if that is the reason but I got another weird problem:

I wrote a small macro to call Solver in the questionable spreadsheet. It only has four spreadsheets initially but after I found out the error message "Automation Error, Catastrophic failure" and whenever I reset the VBE, I got an extra worksheet. So I can see from the project explorer that I have 48 sheets now!

Please, any idea to delete all those sheets and also solve my spreadsheets problems?

Thanks very much.

jJ
 
Upvote 0
After a PM (Please post questions here...), I found that this:

If IsError("optprice") Or IsError("stk") Or IsError("tme") Or IsError("r") Or IsError("exe") Then
Exit Function

shouldn't be like that. Remove the quotes:

If IsError(optprice) Or IsError(stk) Or IsError(tme) Or IsError(r) Or IsError(exe) Then
Exit Function
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,812
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top