ich komme leider nicht weiter.
Aus einer Datenbank habe ich knapp 90 Tabellen, die unsortiert sind.
Wie komme ich bei folgendem Makro weiter, so dass "Tabelle1" zu Tabelle1 bis 90 wird. Es ist zum Verzweifeln. Ich möchte vermeiden, dass ich hier für jede Seite ein Makro erstellen muss.
Vielen Dank für eure Hilfe.
Sub SORT_Name()
' Sortiert nach Name
Cells.Select
ActiveWorkbook.Worksheets("Tabelle1").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Tabelle1").Sort.SortFields.Add Key:=Range("B2:B403"), SortOn:= _
xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Tabelle1").Sort
.SetRange Range("A1:I403")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
Range("A1").Select
End With
End Sub