+ Reply to Thread
Results 1 to 15 of 15

Run time error 2147417848

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Run time error 2147417848

    hey guys,

    I get the above error with the message: The object invoked has disconnected from its clients.

    I'm using this complex excel worksheet which was created by a guy before me. So I'm not sure what's happening inside of it in terms of codes.

    It was running perfectly fine without errors until today, and spits out the above error.

    debugging shows this.

    Please Login or Register  to view this content.
    underlined line is the yellow highlighted line in the VBA as error.

    And also I tried running this on Excel2003 and it worked without problems. So my problem is how come it's not running on 2010.

    Running on Excel2010 is the purpose and clients have the same.


    any help would be appreciated.

    Dilla
    Last edited by dilla1988; 03-11-2015 at 06:18 PM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Run time error 2147417848

    Hi, dilla1988,

    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



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    P.S.: how can we know what´s in your sheet?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Hi Holger,

    Sorry about the mismatch in formatting.
    Below is the code.

    So the contents in the sheet are some aircraft information with daily movement figures. field 10 has the sum of fields 8 and 9. So if this sum value is 0.000000 then that entire row is deleted.

    So there is the primary worksheet where I input aircraft, runway and movement data. And then there is this 'construct' workbook where it does all the calculations and the sorting of data according to my input.

    Now the error message comes up within the DeleteRowsBasedOnCriteria() as in below code.

    When I press debug on the error message, it shows the yellow highlight in the underlined bold line below.

    The funny thing is code works flawlessly on EXCEL 2003 version.

    Please Login or Register  to view this content.
    Last edited by dilla1988; 03-11-2015 at 06:19 PM.

  4. #4
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by HaHoBe View Post
    Hi, dilla1988,

    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



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    P.S.: how can we know what´s in your sheet?

    Ciao,
    Holger
    Hey Holger,

    Please see the edited post and my response.

    Thanks,
    Dilla

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Run time error 2147417848

    Hi, dilla1988,

    looking at it from the code alone I would try
    Please Login or Register  to view this content.
    or add a check for the last visible row in order to avoid going over the limit of rows when offsetting.

    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by HaHoBe View Post
    Hi, dilla1988,

    looking at it from the code alone I would try
    Please Login or Register  to view this content.
    or add a check for the last visible row in order to avoid going over the limit of rows when offsetting.

    Ciao,
    Holger
    Hey Holger,

    I tried your code, but the same message comes up and Excel crashes.

    Anyway do you know the reason behind the original code working fine on Excel 2003?

    thanks Holger

  7. #7
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by dilla1988 View Post
    Hey Holger,

    I tried your code, but the same message comes up and Excel crashes.

    Anyway do you know the reason behind the original code working fine on Excel 2003?

    thanks Holger
    Just peeked in before force closing ans saw that it's an issue with
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by dilla1988 View Post
    Just peeked in before force closing ans saw that it's an issue with
    Please Login or Register  to view this content.
    Will it be useful if I share the whole folder of the calculation spreadsheets? so you have a better understanding?

    cheers,

  9. #9
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Run time error 2147417848

    Hi dilla1988,

    So column J has the values you want to base the deletion on? Do columns A to I have data (if they don't column J won't be the 10th field)? What is the range of your entire dataset?

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  10. #10
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by Trebor76 View Post
    Hi dilla1988,

    So column J has the values you want to base the deletion on? Do columns A to I have data (if they don't column J won't be the 10th field)? What is the range of your entire dataset?

    Robert

    Hi Robert,

    Yes Column J has the values that are the base for the deletion (which the code is saying to check IF 0.000000)

    Column A-I have data on them.

    I have attached the whole directory so you can see all the connected spreadsheets.

    In the attachment, INM Builder 7.0 is the only file we use to input data. I have filled in the necessary information that should be sufficient to run it.
    All you got to do is press process on the first tab.

    Again I have no idea why this is not working on Excel 2010

    thanks Robert.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Run time error 2147417848

    Hi dilla1988,

    It ran for me (though I have Excel 2007) without error

    Robert

  12. #12
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Thanks for trying it out Robert.

    Strange! so I reckon it's an issue with Excel 2010 I'm having?? But it's doing the same with all the other machines in the office.
    So on 2003 it runs fine too.

    Any tickboxes or options I have to turn on/off in Excel 2010 related to VBA maybe?

  13. #13
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by Trebor76 View Post
    Hi dilla1988,

    It ran for me (though I have Excel 2007) without error

    Robert
    I was looking at References under Excel 2010 VBA and you reckon there is something there that could cause problems within 2010 version?

    thanks,
    Dilla

  14. #14
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Run time error 2147417848

    I was looking at References under Excel 2010 VBA and you reckon there is something there that could cause problems within 2010 version?
    Only if any of them start with MISSING

    Strange! so I reckon it's an issue with Excel 2010 I'm having??
    Without having 2010 I can't offer a solution or advice I'm afraid

  15. #15
    Registered User
    Join Date
    07-30-2014
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Run time error 2147417848

    Quote Originally Posted by Trebor76 View Post
    Only if any of them start with MISSING



    Without having 2010 I can't offer a solution or advice I'm afraid
    Thanks for that Robert,

+ 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. run-time error '2147417848 (80010108)': Automation error
    By YounesB3 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-28-2014, 02:29 PM
  2. MACRO ERROR WITH EXCEL 2013 - Run-Time Error '-2147417848 (80010108)'
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2014, 11:07 AM
  3. run-time error '-2147417848 (80010108)': Automation error
    By BMaise12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-05-2013, 03:19 PM
  4. Replies: 7
    Last Post: 05-15-2013, 09:02 AM
  5. Run-time error '-2147417848 (80010108)': Automation error
    By Lightboxes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2012, 05:53 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