Boa tarde efs2016,
Mude sua Macro classificar por essa:
Sub Classificar()
Dim UltimaLinha As Double
UltimaLinha = Sheets("Rel").Cells(Cells.Rows.Count, 6).End(xlUp).Row
If UltimaLinha < 2 Then UltimaLinha = 2
Sheets("Rel").Select
Range("A6:F" & UltimaLinha).Select
ActiveWorkbook.Worksheets("Rel").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Rel").Sort.SortFields.Add Key:=Range("B6:B" & UltimaLinha), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Rel").Sort
.SetRange Range("A6:F" & UltimaLinha)
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
teste e de retorno.
att,
Postado : 07/10/2016 12:16 pm