+ Reply to Thread
Results 1 to 3 of 3

Code to quickly delete rows in sheet

  1. #1
    Registered User
    Join Date
    01-26-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2003
    Posts
    15

    Code to quickly delete rows in sheet

    Hi. At the end of the month I have 1 sheet that has like 15k rows, and my friend wrote me a macro to delete the rows but I feel like it runs slow. Is there a faster way to delete all row? Here is what I found in the code windows when I click "edit" the macro

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Code to quickly delete rows in sheet

    What are you trying to accomplish? Just deleting all the rows on the sheet and starting over minus the header row maybe?

    Note:
    I had the same thought as tigeravatar, here is my attempt...

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 04-20-2012 at 01:53 PM. Reason: added code
    HTH
    Regards, Jeff

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Code to quickly delete rows in sheet

    shinichi_nguyen,

    Is it required the rows be deleted? This will clear the cells including formatting except for the headers. Cleared 16000 rows basically instantly:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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