Hi,
To stop it clearing remove this line of code
To Sort just record the action and add to code
Sub copy_1_Values_ValueProperty()
Dim sourceRange As Range
Dim destrange As Range
Dim Lr As Long
Lr = LastRow(Sheets("Sheet1")) + 1
Set sourceRange = Sheets("Sheet2").Range("A2:b2")
With sourceRange
Set destrange = Sheets("Sheet1").Range("A" & Lr). _
Resize(.Rows.Count, .Columns.Count)
End With
destrange.Value = sourceRange.Value
Sheets("Sheet1").Activate
Columns("A:B").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("A1").Select
End Sub
VBA Noob
Bookmarks