I have the following code to delete rows containing "Unit" from row 2 onwards
Where Unit in Col A is repeated from row 2 onwards, these are not being Deleted
Kindly amend my code
Where Unit in Col A is repeated from row 2 onwards, these are not being Deleted
Kindly amend my code
Code:
Sub Delete_DupHeadings ()
Dim LR As Long, I As Long
With Sheets("Data Import")
.Range("A2").AutoFilter 1, "Unit"
.AutoFilter.Range.Offset(1).EntireRow.Delete
.AutoFilterMode = False
End With
End Sub