+ Reply to Thread
Results 1 to 2 of 2

Error 440 - object invoked has disconnected from its clients

  1. #1
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Error 440 - object invoked has disconnected from its clients

    The code posted below is for a UserForm, ufAddAssignment. The user inputs values that are then pasted into the worksheet. Along the way we test for valid input values. Most work fine:

    cbAddAssignment_Click() works fine
    cbClose_Click() works fine
    tbRoom_afterUpdate() works fine

    tbItem_AfterUpdate() works fine during the test to see if item number exists but when I test for a duplicate record the problem happens.

    The code seems to work. When I attempt to add a duplicate record I get the MsgBox, the UserForm unloads and the user is taken to the record they mistakenly attempted to enter. Everything is as desired except that that is when the error message occurs:

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

    While trying to solve the problem I:

    commented out "Unload Me." This stopped the error but the UserForm remained on screen.
    Changed "Unload Me" to "Unload ufAddAssignment." No change.
    Made sure Option Explicit was present (some posts said this would solve problem.) Nope.
    When I click the Debug button the sub that is attached to a button to invoke the UserForm, is highlighted

    Would you kindly check my code to see if there is a way I can close the form without an error?

    Thanks for your time!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-08-2012
    Location
    San Clemente, California
    MS-Off Ver
    Office365
    Posts
    383

    Re: Error 440 - object invoked has disconnected from its clients

    Good Morning,

    I have not had any replies to my post which is unusual for this truly awesome forum. So, I fear my original post may have had too much information. Here is just the procedure that causes the error (see original post for complete UserForm code):

    Please Login or Register  to view this content.
    In short, I need a way to close this form when I return the user to the worksheet.

    Your help would be most appreciated.

    Thanks!

+ 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: The Object Invoked Has Disconnected from Its Clients
    By ks1102 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2013, 02:28 AM
  2. Error Message : The object invoked has disconnected from its clients. Need help in VBA
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 07:41 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. error: the object invoked has disconnected from its clients
    By cooper1308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2009, 10:59 AM
  5. 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