Hi,
I am looking to delete certain rows that have the words "No Change" in column A and to keep those that have the word "Upload" in column A (those are the only 2 values for the column). I sort the sheet so that Upload is at the top and am looking to delete the ones that say "No Change" at the bottom. The range is fixed for the lookup (A3:BZ12000) and it will always be column A that has one of those 2 values (Upload or No Change). Thanks in advance for the help, its much appreciated. The macro below runs slow and am looking for one that will basically find the first "No Change" and delete everything below it.
Sub UploadSort()
'
' UploadSort Macro
'
'
Sheets("Item Upload Template").Select
Cells.Select
Selection.Copy
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = LR To 1 Step -1
If Range("A" & i).Value = "No Change" Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub
I am looking to delete certain rows that have the words "No Change" in column A and to keep those that have the word "Upload" in column A (those are the only 2 values for the column). I sort the sheet so that Upload is at the top and am looking to delete the ones that say "No Change" at the bottom. The range is fixed for the lookup (A3:BZ12000) and it will always be column A that has one of those 2 values (Upload or No Change). Thanks in advance for the help, its much appreciated. The macro below runs slow and am looking for one that will basically find the first "No Change" and delete everything below it.
Sub UploadSort()
'
' UploadSort Macro
'
'
Sheets("Item Upload Template").Select
Cells.Select
Selection.Copy
Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = LR To 1 Step -1
If Range("A" & i).Value = "No Change" Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub