+ Reply to Thread
Results 1 to 3 of 3

Deleting rows in table give me run time error delete method of range class failed

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    Maryland
    MS-Off Ver
    2013
    Posts
    32

    Deleting rows in table give me run time error delete method of range class failed

    I'm very stuck on this. My code is below:

    Please Login or Register  to view this content.
    "Selection.entirerow.delete" give me a 1004 runtime error: delete method of range class failed every time. I'm able to manually delete the rows from the delete menu, and got this code from recording a macro, which obviously worked or I wouldn't have gotten the code. Every time I try to run it from a command button though, it errors out. Any thoughts?

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Deleting rows in table give me run time error delete method of range class failed

    Can you prepare a sample of your file and attach it to your thread.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    04-18-2014
    Location
    Maryland
    MS-Off Ver
    2013
    Posts
    32

    Re: Deleting rows in table give me run time error delete method of range class failed

    Sample attached. Macro name is DeleteBlankRows

    I suppose I could filter blanks and delete them, but I've spent enough time on this to want to figure it out.

    sample.xlsm

+ 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 '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
  2. Replies: 1
    Last Post: 01-07-2014, 01:08 AM
  3. [SOLVED] Run-time error '1004' ; Delete method of Range Class failed
    By Adam1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2012, 06:43 AM
  4. [SOLVED] Delete method of range class failed - run time error 1004
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-28-2012, 07:37 AM
  5. Run-time error '1004' ; AutoFilter Method of Range class failed
    By BorisMKD in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-20-2008, 05:47 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