hi
using this code
1- how wouyld i be able to have new worksheet created named as the sorted column
2- sorted column gets either copied or moved to column A
can this be updatable each time it's run?
using this code
1- how wouyld i be able to have new worksheet created named as the sorted column
2- sorted column gets either copied or moved to column A
can this be updatable each time it's run?
VBA Code:
Sub sort()
Dim SortCol As Range
' Input box to select the column to sort by
Set SortCol = Application.InputBox("Select the column to sort", "Sort-Box", 0, , , , , 8)
Range("ALLData").sort Key1:=SortCol, Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub