+ Reply to Thread
Results 1 to 3 of 3

Loop backwards through selected range - delete entire row from selected cells

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    77

    Loop backwards through selected range - delete entire row from selected cells

    Hi,

    In a test worksheet, add a/b/c/d/e to A1:A5. Use Cntl-Click to select b,d,e.

    Run this test routine:

    Please Login or Register  to view this content.
    Is there a way to loop backwards through the selection so row deletion works properly?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Loop backwards through selected range - delete entire row from selected cells

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Loop backwards through selected range - delete entire row from selected cells

    You may use Areas and Rows:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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. [SOLVED] Delete entire row from worksheet, which is selected in 'Listbox1' on Userform
    By p_nayak268 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 08:27 AM
  2. [SOLVED] Delete/empty cells in selected range every Nth row
    By vemix in forum Excel General
    Replies: 1
    Last Post: 10-06-2012, 07:08 AM
  3. Replies: 6
    Last Post: 08-06-2012, 01:09 PM
  4. Replies: 2
    Last Post: 08-28-2011, 02:39 AM
  5. Macro to print a selected range, not entire worksheet
    By James C in forum Excel General
    Replies: 3
    Last Post: 10-19-2005, 05:12 PM

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