+ Reply to Thread
Results 1 to 2 of 2

Delete Method of Range Class failed

  1. #1
    Registered User
    Join Date
    02-26-2020
    Location
    Boston
    MS-Off Ver
    MS Office 365
    Posts
    12

    Delete Method of Range Class failed

    I have a macro (ParseDefects) that calls another macro (Clear_CombinedDefects). When I run ParseDefects, I am getting a runtime error for ".DataBodyRange.Delete" within the Clear_CombinedDefects Macro. I keep getting Run-Time error '1004': Delete Method of Range Class failed. I was not getting this error before but now I am. I tried selecting the sheet before deleting the rows but that did not help. Can anyone help?

    ParseDefects:
    Please Login or Register  to view this content.
    Clear_CombinedDefects
    Please Login or Register  to view this content.
    Last edited by sambarrett215; 01-30-2023 at 04:04 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Delete Method of Range Class failed

    Can you attach the whole Excel file so we can actually run the code?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] Delete Method of Range Class Failed on SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    By BFid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2021, 11:27 AM
  2. Delete Method of Range Class failed
    By kielle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-25-2016, 03:54 AM
  3. [SOLVED] Run-time error '1004': Delete method of Range class failed
    By Nobo1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2016, 03:01 AM
  4. Run-time error '1004': Delete method of Range class failed
    By Lozza1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2014, 04:56 PM
  5. Delete method of Range class failed (again)
    By Kelden in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-23-2012, 01:01 AM
  6. Delete method of Range class failed
    By dan_coder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2006, 05:20 AM
  7. [SOLVED] "delete method of range class failed
    By Kathy Goldie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2005, 02:06 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