I have code to delete all rows in Col C from row 4 onwards except whre the text contains BRFM for eg BRFM REDIT
I am struggling with this part below
It would be appreciated if someone could kindly assist me
I am struggling with this part below
Code:
If Cells(LR, 3) <> Like "BRFM*" Then
Code:
Sub Delete_Unwanted()
Sheets(2).Select
Dim LastRow As Long
Dim LR As Long
'fetch the count of rows to act upon
LastRow = Range("a65593").End(xlUp).Row
'starting at the bottom of the spreadsheet and work upwards
For LR = LastRow To 4 Step -1
'look at the Row# based upon the count and the cell in Column A for that row
If Cells(LR, 3) <> Like "BRFM*" Then
Cells(LR, 3).EntireRow.Delete
End If
Next LR
End Sub
It would be appreciated if someone could kindly assist me