+ Reply to Thread
Results 1 to 2 of 2

Delete rows based on Text

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2016
    Posts
    124

    Delete rows based on Text

    Hi all

    Can anyone help with this code:
    I am trying to search a sheet and find multiple ext strings and if a row contains one of those strings it then deletes the row.

    This is what I have so far, and it works for one text string

    Please Login or Register  to view this content.


    I would like the sheet to search for the following phrases then delete the rows if found.

    No Occupancy current at start date
    Column 2 - Job No - not found.

    Cheers
    Dan

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Delete rows based on Text

    Hi, Dan,

    maybe use the Autofilter for this if you search for 2 terms?

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Delete Rows Based On A Text Criteria
    By NSTurk725 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-24-2014, 12:22 AM
  2. Delete a range of rows based on a known and unknown text value
    By rjssl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2013, 10:37 AM
  3. Replies: 16
    Last Post: 01-19-2012, 08:18 AM
  4. Delete rows based on multiple criteria (Date & Text)
    By Poulan in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-08-2010, 09:00 AM
  5. Macro to delete rows based on partial text
    By rossi_69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2009, 06:25 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