Ok, so I can't figure out how to do this at all. I basically have a spreadsheet with varrying number of rows. I want to check the value of a specific column (K) and if the value of that column is not in my named range I want it to delete the entire row. Currently I am using a lot of macros like the one below and calling them all in another macro, but that is becoming to cumbersome. I am a noob at VBA so please provide me with some detailed help if possible. Thanks so much!
Code:
Sub DeleteACCUTRAC()
If ActiveSheet.Name = "Tracking System Compliance" Then
Range("J:J").Select
Else: Range("K:K").Select
End If
Dim c As Range
Dim SrchRng
Set SrchRng = Selection
Do
Set c = SrchRng.Find("ACCUT", LookIn:=xlValues, LookAt _
:=xlPart)
If Not c Is Nothing Then c.EntireRow.Delete
Loop While Not c Is Nothing
End Sub