+ Reply to Thread
Results 1 to 2 of 2

Deleting a cell based on a keyword

  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    52

    Question Deleting a cell based on a keyword

    Is there a way to search for a keyword in a spreadsheet and delete the cell if finding that keyword?

    I mean deleting a cell if it contains a certain keyword (regardless of the other text in the cell)!

  2. #2
    Forum Contributor
    Join Date
    09-23-2008
    Location
    UK
    Posts
    137

    Re: Deleting a cell based on a keyword

    You could use a macro implementation of the find command, something like:

    Do while there is something to find
    Cells.Find(What:="Online", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
    :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
    False, SearchFormat:=False).Activate

    Cells.Delete

    Cells.FindNext(After:=ActiveCell).Activate

    End

+ 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