Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Automation Error

It appears the automation error had something to do with visibility of the window in which the external workbook was displayed. When I opened the workbook and then made the window invisible, the automation error disappeared. Thing is, I wanted the window invisible all along, but left if visible because I thought it would facilitate debugging efforts (debugging an earlier problem).

Anyway, the more I think about it, the more I remember that program flow depends upon visibility. I'm no VBA expert, but hiding a form causes execution to return to the next visible form or workbook, right? So maybe by leaving the workbook visible, I was inadvertently screwing up the flow of program control through the system. And maybe making the window invisible corrected the control flow, thereby eliminating the automation error.

Or maybe it was the pentagram that I drew around my computer to ward off the evil automation error spirits.

Your post concerning the need to destroying any and all links to the workbook before closing it made me go back and check to make sure all my references to ranges in the external workbooks were terminated (set to nothing) before I closed the workbook. Not sure if that helped, it did not eliminate the automation error, but it seems a likely thing to do and I suspect in so doing I've avoided future problems in some way.

In any case, I thank you very much for your help.



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
Run-time error '-2147221080 (800401a8)': Automation error Ronald R. Dodge, Jr.[_2_] Excel Programming 1 April 2nd 09 05:37 PM
Compile error: Automation error in Excel 97 Geoff Excel Programming 3 July 1st 08 07:20 AM
Urgent!!! Run-time error '-2147024770 (8007007e)' Automation error [email protected] Excel Programming 3 May 28th 08 04:51 AM
Run-Time Error'-2147221080(800401a8)': Automation Error BEEJAY Excel Programming 1 July 18th 06 03:13 PM
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:23 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"