+ Reply to Thread
Results 1 to 7 of 7

Runtime error -2147417848 (80010108) Disconnected from client

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Runtime error -2147417848 (80010108) Disconnected from client

    Hi guys,

    I have created a userform via Excel 2010, which is made up of 5 userforms. On each form there are numerous textboxes and checkboxes and a couple of listboxes, which assist the user in writing a report.

    Basically each selection generates various phrases and words onto the excel spreadsheet, which also uses formulas when various cells are filled with data on the spreadsheet, in addition to simple & formulas to assist in creating full sentences (i.e. if 2 checkboxes are selected then one cell will show 'and' as opposed to a full stop).

    On the last userform there is a button to open a word document and the coding pastes data from the spreadsheet into bookmarks on the document, subsequently writing a full report for someone.

    I had tested this for a while and it worked well, but I have recently made a few changes by adding some more checkboxes and removing some of the errors (i.e. the checkboxes generating the wrong words and/or phrases). Now when I run it I get Runtime error -2147417848 (80010108) Disconnected from client when either selecting checkboxes on userform 2, or when pressing continue (which just open the next userform).

    I have looked at various forums for ideas of how to fix it, but havent found anything that I can associate with my userform. Any help on how to fix it would be greatly appreciated. I have attached my tool for reference.

    Many thanks,

    Chris
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    Update:

    I get this error:

    Error.JPG

    And then upon pressing debug I get this:

    debug.JPG

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    It would be nice to warn people here that your app is going to hide Excel and will therefore in all likelihood leave a hidden instance of it running when a problem occurs.

    I did not replicate your error with a brief experimentation with the workbook but I would note that many of the instances where you used checkboxes appear to be mutually exclusive and so you should really be using option buttons.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    Hi xlnitwit, my apologies for not warning you!

    So you would recommend using option buttons as opposed to check boxes?

    Many thanks

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    If you have options that are mutually exclusive, then yes. Checkboxes are designed to allow you to select more than one option.

    Note- I am not suggesting this will solve your problem since I cannot reproduce it. When the error occurs again, I suggest you keep pressing f8 until you get to the line in Userform3 that is actually causing the problem.

    After a quick look at your code, your Clear buttons on uf2 and uf3 are clearing textboxes on uf1- is that the intent?
    Last edited by xlnitwit; 11-08-2017 at 09:45 AM.

  6. #6
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    Hi,

    Yeah I've used checkboxes because there are occasions, where the user will select more than one.

    The clear buttons are used to clear the data up to that point, so that is the intention of those buttons.

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Runtime error -2147417848 (80010108) Disconnected from client

    But why are they trying to clear the data on a form you already told to unload?

    Checkboxes are fine for those occasions, but for any single option scenarios you should be using optionbuttons otherwise you'll need to code against the user selecting more than one choice.

+ 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 Runtime 2147417848(80010108)
    By shilva in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2017, 02:01 PM
  2. System Error (-2147417848) object invoked disconnected client
    By matis79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2014, 03:28 AM
  3. [SOLVED] Runtime Error -2147417848 (80010108) The Object Invoked Has Disconnected
    By johndoe86x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2013, 08:24 AM
  4. Replies: 0
    Last Post: 10-25-2013, 03:58 PM
  5. System Error &H80010108 (-2147417848) object invoked disconnected client
    By xclrInTraining in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2013, 10:14 AM
  6. Replies: 12
    Last Post: 04-15-2010, 08:20 PM
  7. Runtime Error -2147417848 (80010108)
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2006, 02:10 PM

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