+ Reply to Thread
Results 1 to 9 of 9

Automation Error -2147417848 The object invoked has disconnected from its clients

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    21

    Automation Error -2147417848 The object invoked has disconnected from its clients

    Hi, this code was doing its job fine over the past 2 days. I didn't change anything. Now all of the sudden I keep getting this error. I've tried to find a solution to people with similar problem but it hasn't been successful....Please help!


    Please Login or Register  to view this content.
    Last edited by soranz; 04-16-2015 at 03:35 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    It's working fine for me

    Is there any worksheet change event runs in the back ground?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-30-2014
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    Ok that is strange. It is working for me now too...

    To populate "New Data", I've been manually copying a chunk of data from a second workbook into the first workbook's "New Data" sheet.

    None of my macro buttons were working either. I did close the workbooks down a couple of times and re-opened and it had that error. Then, I manually added the data. After all of that I saved, checked here, then tried again and now it works.

    Could it be the flash drive connection that stored a backup that I might have had a tmp open in the background?
    Also, is there a way to qualify that line before I call it?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    I requested for all members help for this thread. So surely someone will fix the root cause of this error

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    Another approach:

    Please Login or Register  to view this content.



  6. #6
    Registered User
    Join Date
    07-30-2014
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    Thank you Sixthsense

    Thank you snb!
    Quick questions:
    What is the data type of sn, sp and st? Seems like they should be ranges but I get errors so I have them as variants.
    How can I also rearrange the formatting of the columns along with the data (each column category has a specific color)?

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    As long as you do not declare them they are variants by default. In this case (arrays) they also have to. If you comment out 'Option Explicit' it runs smoothly.
    The formatting is quite another story:

    You could add:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-30-2014
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    Hmm
    Looks like the loop should work. The columns should line up and the colors are copied in the right direction.

    For some reason when I run it the colors are very mixed up (data is arranged fine). When I retry they match up in the same messed up way. Some colors I'm not even using in the Main sheet. I have that loop at the very end of the sub.

    Any ideas?

  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Automation Error -2147417848 The object invoked has disconnected from its clients

    It may be better if you use .Color for .ColorIndex
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. 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
  2. [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
  3. 2147417848 automation error the object invoked has disconnected from its clients
    By KasiaFavourite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2011, 10:44 AM
  4. -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
  5. [SOLVED] Automation Error : The Object Invoked Has Disconnected From Its Clients !!
    By donna.gough@hydro.com in forum Excel Programming / VBA / Macros
    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