+ Reply to Thread
Results 1 to 3 of 3

Delete rows in scattered selection

  1. #1
    Registered User
    Join Date
    01-01-2010
    Location
    The Netherlands
    MS-Off Ver
    Office 2003
    Posts
    28

    Delete rows in scattered selection

    Hello,

    I'd like to delete all rows of a scattered selection. I tried this code

    Please Login or Register  to view this content.
    but it only works right on a continuous selection. For example when I create a list of numbers (1 up to 50) and I select random cells at row 5-10 and 20-25 and at row 27 only the first group (5-10) is removed instead of ALL rows in the selection.

    Any suggestions?

    Kind regards,
    Erik

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,124

    Re: Delete rows in scattered selection

    You need to use the Area collection for non contiguous selections

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-01-2010
    Location
    The Netherlands
    MS-Off Ver
    Office 2003
    Posts
    28

    Re: Delete rows in scattered selection

    Thank you very much for your swift reply Andy!

    Erik

+ 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