I have a macro to sort Col M on sheet1
when running the macro, I get a message "'sort Reference not valid"
It would be appreciated if someone could amend my code
when running the macro, I get a message "'sort Reference not valid"
It would be appreciated if someone could amend my code
Code:
.Range("M3:M" & Lr).Sort Key1:=Range("M2"), Order1:=xlAscending
Code:
Sub Sort_Ageing()
Dim Lr As Long
With Sheets(1)
Lr = .Cells(.Rows.Count, "m").End(xlUp).Row
.Range("M3:M" & Lr).Sort Key1:=Range("M2"), Order1:=xlAscending
End With
End Sub