I need to modify this. I have a range of Row 2 to Row 371 always for this sheet. What I need to do is if there is not a value of 1 in Column D for Rows 2:371, I need the row to be deleted. How can I modify this?
Thanks
Sub DeleteLongQuoteRows()
Dim c As Range
'Application.ScreenUpdating = False
Do: Set c = Worksheets("Sheet1").[D]. _
Find("1", LookIn:=xlValues, lookAt:=xlPart)
If Not c Is Nothing Then _
c.EntireRow.Delete Else _
Exit Do
Loop
'Application.ScreenUpdating = True
End Sub
Thanks
Sub DeleteLongQuoteRows()
Dim c As Range
'Application.ScreenUpdating = False
Do: Set c = Worksheets("Sheet1").[D]. _
Find("1", LookIn:=xlValues, lookAt:=xlPart)
If Not c Is Nothing Then _
c.EntireRow.Delete Else _
Exit Do
Loop
'Application.ScreenUpdating = True
End Sub