I Have a Problem with this VBA code , i want to delete just duplicate data on Column B , just Column B . but this code delete row also .
that beter i write i want to remove duplicate just i 1 Column and also remove the blank cell on that column alo .
Please help me .
PHP Code:
Dim x As Long
Dim LastRow As Long
LastRow = Range("B65536").End(xlUp).Row
For x = LastRow To 1 Step -1
If Application.WorksheetFunction.CountIf(Range("B1:B" & x), Range("B" & x).Text) > 1 Then
Range("B" & x).EntireRow.Delete
End If
Next x