Ok. Try this Macro
Sub Tesr()
Dim LastRow As Long, j As Long
Dim MyRange As Range, Cell As Range
With Range("A:A")
LastRow = .Cells(.Rows.Count, 1).End(xlUp).Row
End With
Set MyRange = Range("A1:A" & LastRow)
Application.ScreenUpdating = False
' Deleting dublicates and blang rows
For j = LastRow To 1 Step -1
With WorksheetFunction
If .CountIf(Range("A1:A" & j), Range("A" & j)) > 1 Or _
Range("A" & j).Value = "" Or _
Len(Range("A" & j)) = 1 Then
Rows(j).Delete
End If
End With
Next j
LastRow = Range("A1").End(xlDown).Row
Set MyRange = Range("A1:A" & LastRow)
MyRange.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlYes
With Range("A1")
.Interior.Color = 65535
.Font.Bold = True
.Font.Color = -16776961
.EntireColumn.AutoFit
.Select
End With
Application.ScreenUpdating = True
End Sub
Bookmarks