Results 1 to 2 of 2

Thread: [RESOLVED] Deleting non-visible rows

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427

    Resolved [RESOLVED] Deleting non-visible rows

    Given a worksheet without headers that has been filtered, and given a range that refers to the column that has the filter, i know that the following will delete all the visible rows.
    Code:
    MyRange.Offset(-1, 0).Resize(.Rows.Count, 1).SpecialCells(xlCellTypeVisible).EntireRow.Delete
    Is there some way to use Autofilter to also delete the non-visible row above each visible row?

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width