Results 1 to 9 of 9

remove cell contents if contains certain word in a specific column

Threaded View

  1. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: remove cell contents if contains certain word in a specific column

    Please use code tags with your code

    This code looks for text in column B and can easily be changed to any column

    Sub highlight()
    Dim LR&, i&
    With ActiveSheet
    
        LR = .Cells.Find("*", , , , xlByRows, xlPrevious).Row
    
        For i = 1 To LR
            If .Cells(i, "B") = "text" Then .Cells(i, "B") = ""
        Next
     End With
    End Sub
    Last edited by AB33; 03-30-2013 at 07:05 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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