+ Reply to Thread
Results 1 to 5 of 5

Deleting a number of separate rows at the same time

  1. #1
    Registered User
    Join Date
    08-25-2011
    Location
    England
    MS-Off Ver
    Excel 2003, 2010
    Posts
    37

    Question Deleting a number of separate rows at the same time

    There seems to be a limitation in the number of separate lines that can be deleted which is causing this routine a problem. Can anyone think of another approach I can try?

    Please Login or Register  to view this content.
    What doesn't kill you is just biding it's time

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Deleting a number of separate rows at the same time

    I must honestly admit that I am having trouble understanding your code but I played around a bit with ranges and the union instruction and was able to build a range of 500 individual rows and delete them without a problem using the code below. Perhaps that is something to explore?

    Please Login or Register  to view this content.
    PS writing the value "to_delete" to cell A is just for testing purposes and not needed
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    08-25-2011
    Location
    England
    MS-Off Ver
    Excel 2003, 2010
    Posts
    37

    Re: Deleting a number of separate rows at the same time

    Cheers for that, with a bit of fiddling I changed

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.

    for
    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Deleting a number of separate rows at the same time

    and it works ?

  5. #5
    Registered User
    Join Date
    08-25-2011
    Location
    England
    MS-Off Ver
    Excel 2003, 2010
    Posts
    37

    Re: Deleting a number of separate rows at the same time

    It does indeed. I had to set it up that way as I would never know which was the first range to set for deletion. it did throw up later an out of memory message though, I'm not sure if it is related.

+ 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