+ Reply to Thread
Results 1 to 8 of 8

Automation error - object disconnected from its clients

  1. #1
    Registered User
    Join Date
    02-25-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Automation error - object disconnected from its clients

    I have a spreadsheet driven by VBA.

    Running on my computer with Excel 2019 it works. I have now transferred it to two other computers running Excel 2016.
    On one it works perfectly, the other gives an error message:

    Run-time error '-2147417848(80010108)'
    Automation error
    The object invoked has disconnected from its clients


    The code identified as the cause is

    Please Login or Register  to view this content.
    Can anyone help to resolve this error?

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,218

    Re: Automation error - object disconnected from its clients

    I don't think the problem is with the cited code snippet. It appears much earlier. Without being able to analyze all the code, however, there's not much you can say.

    Artik

  3. #3
    Registered User
    Join Date
    02-25-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Re: Automation error - object disconnected from its clients

    The complete code is below.

    it is driven by a button click to create 4 pdf files from 4 sheets.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,218

    Re: Automation error - object disconnected from its clients

    Try not to activate the sheets before publishing to PDF. By the way, a slightly shortened code:
    Please Login or Register  to view this content.
    Artik

  5. #5
    Registered User
    Join Date
    02-25-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Re: Automation error - object disconnected from its clients

    Thank you for showing the use of Split!

    However, the problem is still there.

    Can you explain what the meaning of the error message? The help on the Microsoft site is not very useful.

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,218

    Re: Automation error - object disconnected from its clients

    1. Does the problem also occur with other sheets? For the test, remove from Split AD, and in subsequent tests, remove the next sheet names.
    2. Where is CommandButton1 embedded? In the sheet or in the Userform?

    Artik

  7. #7
    Registered User
    Join Date
    02-25-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Re: Automation error - object disconnected from its clients

    It exists on sheet1

    The main issue is that I have run the process many times on my computer, as has another user on hers. It's just one other that has the problems.

    I have checked the libraries that each system accesses and they are all the same.

    So my major concern is I don't understand what the error message is saying. If I did I might be able to solve the issue!

  8. #8
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,218

    Re: Automation error - object disconnected from its clients

    The problem is that the message does not match the presented macro. Sometimes it happens that Excel displays strange messages.
    1. One of the reasons might be that the code in the module is too long (over 64KB), but you probably don't have that much code.
    2. Another reason may be the accumulation of garbage in the working layer of the file (invisible to the user). In that case, I recommend VBADecompiler from Francisco Orlando Magalhães Filho.
    3. You can also check if something changes if you set TakeFocusOnClick to False in the CommandButton properties (Developer/Design mode/Properties -> select CommandButton -> change property TakeFocusOnClick).

    This is where my ideas stop, because it is an unusual error, the cause of which is difficult to trace.

    Artik

+ 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. [SOLVED] Automation error - object invoked has disconnected from its clients
    By dOOb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-28-2016, 07:22 PM
  2. -2147417848 automation error the object invoked has disconnected from its clients
    By aishwaryadn in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-22-2015, 04:13 PM
  3. [SOLVED] Automation Error -2147417848 The object invoked has disconnected from its clients
    By soranz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-17-2015, 04:43 AM
  4. Automation error , the object invoked has disconnected from its clients
    By lini1985 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2014, 08:55 AM
  5. [SOLVED] Automation error Object invoked has disconnected from its clients
    By BobMillar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2014, 06:59 AM
  6. -2147417848 automation error the object invoked has disconnected from its clients
    By ajaykgarg in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-12-2011, 08:10 AM
  7. Replies: 3
    Last Post: 06-17-2005, 09:05 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