Sub
Sortieren()
tabName = Array(
"Tabelle1"
,
"Tabelle2"
,
"Tabelle3"
,
"Tabelle4"
)
For
n = LBound(tabName)
To
UBound(tabName)
With
Worksheets(tabName(n))
Range(
"AW2"
).
Select
Range(Selection, Selection.
End
(xlDown)).
Select
ActiveWindow.Zoom = 40
ActiveWorkbook.Worksheets(
"Bodygroup 2"
).ListObjects(
"Tabelle11022"
).Sort. _
SortFields.Clear
ActiveWorkbook.Worksheets(
"Bodygroup 2"
).ListObjects(
"Tabelle11022"
).Sort. _
SortFields.Add Key:=Range(
"Tabelle11022[Spalte18]"
), SortOn:=xlSortOnValues, _
Order:=xlDescending, DataOption:=xlSortNormal
With
ActiveWorkbook.Worksheets(
"Bodygroup 2"
).ListObjects(
"Tabelle11022"
).Sort
.Header = xlYes
.MatchCase =
False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End
With
End
With
Next
n
End
Sub