Boa tarde!!
Eu não entendi muito bem.
Consegue adaptar os códigos abaixo
'http://office.microsoft.com/en-us/excel-help/sort-data-in-a-range-or-table-HP010073947.aspx#BMsort_by_a_custom_list
Sub Tente()
Columns("SuaColuna").Select
Selection.Sort Key1:=Range("SeuCabeçalho"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
Private Sub Worksheet_Activate()
Range("A10", Range("R65536").End(xlUp).Address).Select
Selection.Sort Key1:=Range("R10"), Order1:=xlDescending _
, Key2:=Range("?????"), Order2:=xlDescending _
, Key3:=Range("?????"), Order3:=xlDescending
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 16/05/2014 1:11 pm