+ Reply to Thread
Results 1 to 2 of 2

I want to delete all rows that contain "M" in the below query

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Smile I want to delete all rows that contain "M" in the below query

    I want to delete all rows that contain "M" in the below query. The auto filter is filtering rows containing m in column A. how can I delete these rows where ever a m appears in the column?

    This is my macro below. I do not know what to put in the middle of the query


    Selection.AutoFilter
    Selection.AutoFilter Field:=1, Criteria1:="m"

    Selection.Delete Shift:=xlUp



    thanks

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: I want to delete all rows that contain "M" in the below query

    Hi biffothebear,

    Welcome to the forum.

    I may have a solution but you'll need to have a moderator change your thread title to help others searching the net with the same or similar problem (something like "Delete All Visible Rows") and wrap your code as your thread currently breaks Rule 1 and 3 (respectively) of the forum.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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