Wird zwar sortiert aber das PROBLEM die Sortieren Zeilen werden ganz unten an die Tabelle sortiert. Ich brauche diese aber oben. Wie gelingt mir das. Wie gesagt, wenn ich die Zellen nicht verknüpfe mit andern so bleiben die Zellen sortiert oben. Bin um Hilfe froh.
Sub Logistik_Tour_sortieren()
' Makro4 Makro
' Tour Sortieren Logistik
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Add2 Key:=Range( _
"C2:C1000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("L").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Add2 Key:=Range( _
"C2:C1000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("L").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("L").AutoFilter.Sort.SortFields.Add2 Key:=Range( _
"C2:C1000"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("L").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub