J
J.W. Aldridge
Code works, but I need to alter the filter to replace the code portion
"ABC", with a popup box that asks the user what is the name of their
group, so that all other rows are deleted instead of having it in the
code.
Sub DeleteRows()
Dim LastRow As Long
Dim rw As Long
Application.ScreenUpdating = False
LastRow = Cells(Rows.Count, "c").End(xlUp).Row
For rw = LastRow To 2 Step -1
If Cells(rw, "c").Value <> "ABC" Then
Rows(rw).Delete Shift:=xlUp
End If
Next rw
Application.ScreenUpdating = True
End Sub
"ABC", with a popup box that asks the user what is the name of their
group, so that all other rows are deleted instead of having it in the
code.
Sub DeleteRows()
Dim LastRow As Long
Dim rw As Long
Application.ScreenUpdating = False
LastRow = Cells(Rows.Count, "c").End(xlUp).Row
For rw = LastRow To 2 Step -1
If Cells(rw, "c").Value <> "ABC" Then
Rows(rw).Delete Shift:=xlUp
End If
Next rw
Application.ScreenUpdating = True
End Sub