+ Reply to Thread
Results 1 to 22 of 22

Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

  1. #1
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    HI guys,

    Thank you for reading this post. I'm facing some issue.
    SO the code below works perfectly well . However when I paste more then 100 rows od data in the data column . I received an error.

    The purposed of the code is to drag the formula across whenever there is new data.
    .
    Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed.

    Not sure why?


    Please Login or Register  to view this content.
    Cell B2 has formula =COUNTIFS(A:A,A2,D:D,"<"&D2,E:E,E2)+1
    Cell C2 has formula ="Weekday "&WEEKDAY(D2,2)
    Cell E2 has formula ="WEEK "&WEEKNUM(D2,2)
    Cell F2 has formula =IF(B2>1,"Duplicate,"")
    Attached Images Attached Images

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Turn off the event and turn it on in the end.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.


    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
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Hi there @ sixthsense , it works.Thank you so much

  4. #4
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    hi there @ Sixthsense , I would like to ask your guidance, as although it work it takes so much time to calculate around half an hour just for 500 data as opposed to if I just drag the formula less then a minute . Is there a way to make it calculate more faster optimizing the code? Thanks in advance your help is very much appreciated.

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Try this...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    HI there @ Sixthsense , so sorry for the late reply. I just tried the new code you have given. However, its still taking too much time just to drag the formula across the data. Did I do something wrong maybe? Thank you so much for helping me with this .

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Looping the cells takes more time here..

    Is it possible to keep the formula in B2:F2?

    If so, we can copy paste the B2:F2 formula in one shot and loop will be avoided.

  8. #8
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    ahh ic so copy paste first the formula in the B2:F2

  9. #9
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    I give it a go then

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Could you please tell me when the event needs to run?

    Because currently its running on any change that occurs on that sheet.

  11. #11
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Hi @ Sixthsense , I copy paste the formula at the first data row, but still takes time. Or maybe I didnt understand what you meant just now? So sorry I'm really new with this thus might make alot of mistakes.

  12. #12
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    event needs to run when new data is added. coz everyday new data will be added into the sheet .

  13. #13
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    just a sec, Ill attached my file so you can see how it works clearly.

  14. #14
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    hi @ Sixthsense , attached is the file smaple.
    So the idea is every day I would have to paste about 900 rows of data . The code will calculate how many duplicates in a week and restart the duplicate ocunt every beginning of each week
    Attached Files Attached Files
    Last edited by Norlina Deli; 01-24-2019 at 02:02 AM.

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Quote Originally Posted by Norlina Deli View Post
    event needs to run when new data is added. coz everyday new data will be added into the sheet .
    Which is the determining column of the new data?

    Because currently this code keeps on running for each change in any cell which makes the code to run every time on any change in any cell.

    We wan restrict the code to run on specific column cell change.

  16. #16
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    its at column A @ Sixthsense

  17. #17
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    the rest of the column is just for the formula to calculate the duplicate in a week and restrt the duplicate count every week

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Replace your current code with the below one

    Please Login or Register  to view this content.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    hi @ Sixthsense , not sure if I did something wrong again but its not auto calculating the data.

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

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    Quote Originally Posted by Norlina Deli View Post
    hi @ Sixthsense , not sure if I did something wrong again but its not auto calculating the data.
    Try this...

    Please Login or Register  to view this content.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    hi @ Sixthsense , I feel really bad now , coz nothing is happening now as well . I'm so sorry for bothering you again . You have no idea how much I appreciate this.

  22. #22
    Registered User
    Join Date
    11-14-2018
    Location
    Selangor, Malaysia
    MS-Off Ver
    Office 2016
    Posts
    50

    Re: Run-time error '-2147417848(80010108) : Method 'Formula' of object 'Range' failed

    hi @ Sixthsense , the issue is solved now. Thank you so much for helping me again

+ 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] run time error -2147417848 (80010108) Method 'Formula' on object 'Series' failed
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-12-2016, 02:11 PM
  2. Run-time error '-2147417848 (80010108)' Method 'Formula' of object 'Range failed
    By JessKong1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2016, 02:02 AM
  3. [SOLVED] RunTime Error 2147417848 -Method insert of object Range Failed
    By Vassen in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-14-2016, 06:58 AM
  4. Run-time error -2147417848 (80010108) Method Value of object Range failed
    By Arito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2015, 02:10 PM
  5. Runtime Error 2147417848(80010108) Method Autofill of Object Range failed
    By seejohn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2014, 08:03 AM
  6. "Runtime error '-2147417848 (80010108)' Method 'find' of object 'Range' failed"
    By excelworker_1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-14-2012, 09:53 AM
  7. Replies: 7
    Last Post: 08-24-2005, 11:05 AM

Tags for this Thread

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