gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I need to modify this code but I am a bit lost because I want to delete Cells (Z:AA) if the Value in Column AA = "NEW"
I have values down column Z starting in Z1. I have a formula in Column AA that tells me if the value in Z is something new or not. I want to reduce the list in column Z down to only new items, then take that reduced list and paste it to the bottom of column A
This is the code I have that deletes Row, but I am trying to modify it for the above
Thanks!!
I have values down column Z starting in Z1. I have a formula in Column AA that tells me if the value in Z is something new or not. I want to reduce the list in column Z down to only new items, then take that reduced list and paste it to the bottom of column A
This is the code I have that deletes Row, but I am trying to modify it for the above
Code:
Dim LR As Long, i As Long, X As Variant
X = Sheets("Sheet1").Range("A1").Value
LR = Range("C" & Rows.Count).End(xlUp).Row
For i = LR To 1 Step -1
If Range("P" & i).Value <> X Then Rows(i).Delete
Next I
Thanks!!