+ Reply to Thread
Results 1 to 4 of 4

Strange 'object invoked disconnected' then '1004 - object defined' errors

  1. #1
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Strange 'object invoked disconnected' then '1004 - object defined' errors

    I have some VBA code that pulls stock quotations from Yahoo into Excel. The code has been running on Excel 2003 for years. Recently, I copied the application to a new desktop running W10, Office 2003, 2007 and 2013. It runs fine there under 2003. I also copied the application to a laptop running W10, Office 2003 and 2007. Most of the functions work on the laptop fine except the query that pulls data from Yahoo. The first time I run it, I get the '-2147417848 (80010108) automation error (object invoked disconnected' error. If I reset the macro and run again, I get the '1004 - Application - defined or object-defined error'. Thereafter, I can't even save or close the workbook. Excel hangs and has to be killed.

    Here's some code:
    Please Login or Register  to view this content.
    The error occurs on the 'Refresh' command.

    Thanks for any help or suggestions.
    Last edited by sumdumgai; 10-13-2015 at 07:11 AM.

  2. #2
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: Strange 'object invoked disconnected' then '1004 - object defined' errors

    I have a bit more information. When I start a new instance of Excel 2003, one that does not automatically load Personal.xls (which contains other VBA modules), this macro runs okay. If, however, I run it using Excel 2003 with Personal.xls, not only does the macro error, but the error locks up Excel so that it has to be killed with Task Manager. Thanks for any help.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: Strange 'object invoked disconnected' then '1004 - object defined' errors

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

  4. #4
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: Strange 'object invoked disconnected' then '1004 - object defined' errors

    Resolved. The problem was caused by 'Office Addin 2003'. I don't use Acer's cloud so I de-installed it and the problem disappeared.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error 440 - object invoked has disconnected from its clients
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 11:34 AM
  2. Error:The object invoked has disconnected from client.
    By gpnavin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2012, 01:09 PM
  3. Object Invoked has Disconnected from it's Clients
    By toddbuckles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2010, 04:28 PM
  4. The Object Invoked Has Disconnected
    By pharring in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2010, 09:54 AM
  5. the object invoked has disconnected from its clients
    By excellar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2008, 03:02 PM
  6. the object invoked has disconnected from its clients
    By excellar in forum Excel General
    Replies: 1
    Last Post: 08-22-2008, 07:48 AM
  7. Object invoked disconnected from its clients.
    By Spreadsheet Solutions in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2006, 06:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1