Results 1 to 6 of 6

Delete Rows After a filter

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    Delete Rows After a filter

    Hello,


    I used to work a lot on VBA but now I forgot almost everything and I would need your help to restart again my work on VBA. I have a worksheet with data from Column A to AA and I have a filter on Row 1. I would like to select from this filter a certain value for column D and then delete the rows I dont need. So my code starts like this:
     Sheets("Export").Select
     Selection.AutoFilter Field:=4, Criteria1:="<>MY", Operator:=xlAnd
    But after that I would like to delete the rows that are matching the criteria <> MY. Do I need to select manually the rows and then after make Selection.delete or does it exist a code that can directly delete the rows that I have selected (<> MY) ?

    Thank you for your help !!!
    please Tell me if my description is not clear... so much time I have past since my last visit on this website !
    Last edited by VBA Noob; 11-24-2008 at 09:05 AM. Reason: Added Code Tags

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