+ Reply to Thread
Results 1 to 6 of 6

Find rows containing specific data and delete

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Find rows containing specific data and delete

    Hello,

    I'm new to VBA and this Forum. I need help to create a VBA to delete rows if the cell doesn't have "Other".

    The data is in Column C which consist of the below data so I like VBA to delete the rows when the cell doesn't have "Other".. Could someone help me out?

    -Primary
    -Business
    -Home
    -(blank)
    -Other

    Thank you.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,609

    Re: Find rows containing specific data and delete

    adopted from http://www.excelforum.com/excel-gene...nd-delete.html
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find rows containing specific data and delete

    Another:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-26-2014
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Find rows containing specific data and delete

    Hello Kaper,

    Thank you so much it work wonderfully!


  5. #5
    Registered User
    Join Date
    02-26-2014
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Find rows containing specific data and delete

    Hello John,

    Awww nice and simple!! Thank you

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find rows containing specific data and delete

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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] Find row cell containing specific text, then delete all rows ABOVE that cell
    By ks100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 02:02 PM
  2. Replies: 4
    Last Post: 11-13-2013, 11:15 AM
  3. Find the row a specific text is in a data set & delete certain rows
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 03:52 PM
  4. Replies: 4
    Last Post: 09-18-2012, 10:54 AM
  5. Find rows containing specific data and delete
    By kmlloyd in forum Excel General
    Replies: 6
    Last Post: 01-06-2010, 03:03 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