+ Reply to Thread
Results 1 to 4 of 4

Run-time error '1004' ; Delete method of Range Class failed

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Run-time error '1004' ; Delete method of Range Class failed

    Good Morning All,

    Having probelms with the below macro;

    Please Login or Register  to view this content.
    Im trying to delete the hidden rows in the attached workbook. I think the problem is when defining the number of rows in the work book. It is currently using 500, is there a way to make this search all rows with data, as at times the workbook could cotain more or less than 500 hundred rows?

    When i run the current macro i get - Run-time error '1004' ; Delete method of Range Class failed

    Thanks in advance iof any help you might be able to offer.
    Attached Files Attached Files
    Last edited by arlu1201; 08-14-2012 at 07:23 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run-time error '1004' ; Delete method of Range Class failed

    You can't delete the header of your table. Try this:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Run-time error '1004' ; Delete method of Range Class failed

    Problem solved, many thanks for your help.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run-time error '1004' ; Delete method of Range Class failed

    Glad to help. Please don't forget to mark the thread solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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