I have written code to sort data in Col F. The macro works well, except if therte is only one row of data. I would like the code amended, so that if there is only 1 row of data from row 6 onwards (A6:F6), the macro must exit
Your assistance will be most appreciated
Sub Sort_Ageing()
Dim Lr As Long
Lr = Cells(Rows.Count, "F").End(xlUp).Row
With Range("F6:F" & Lr)
.Sort Key1:=Range("F6"), Order1:=xlAscending
End With
End Sub
Your assistance will be most appreciated
Sub Sort_Ageing()
Dim Lr As Long
Lr = Cells(Rows.Count, "F").End(xlUp).Row
With Range("F6:F" & Lr)
.Sort Key1:=Range("F6"), Order1:=xlAscending
End With
End Sub