Can anyone please help me on the below scenario
I am able to sort the records using VBA on a particular cloumn ("M1") , now how to undo and keep the records in original position
Sub Sor_t()
Dim oneRange As range
Dim aCell As range
Set oneRange = ThisWorkbook.Sheets("RMData").UsedRange
Set aCell = range("M1")
oneRange.Sort Key1:=aCell, Order1:=xlAscending, Header:=xlYes
End Sub
Thanks in advance Ram