Hallo Lynn,
es geht um die Forsetzung der Beitragsfolge die schon im Archiv ist:
/t/megatabelle-teilen/5354861/18
du hast dort ja den folgenden Link zur Mappe genannt:
http://rapidshare.com/files/265860373/Testtabelle_sp…
Dazu habe ich jetzt folgenden Code gebastelt:
Sub Block()
Dim Zei As Long, Spa As Long, Tabname As String
With Worksheets("Gesamttabelle")
For Zei = 5 To .Cells(Rows.Count, 1).End(xlUp).Row Step 80
For Spa = 2 To .Cells(1, Columns.Count).End(xlToLeft).Column Step 12
Worksheets.Add after:=Worksheets(Worksheets.Count)
.Range("A1:A4").Copy Destination:=Range("A1")
.Range(.Cells(1, Spa), .Cells(4, Spa + 11)).Copy Destination:=Range("B1")
.Range(.Cells(Zei, 1), .Cells(Zei + 79, 1)).Copy Destination:=Range("A5")
.Range(.Cells(Zei, Spa), .Cells(Zei + 79, Spa + 11)).Copy Destination:=Range("B5")
Tabname = .Range(.Cells(Zei, Spa), .Cells(Zei + 79, Spa + 11)).Address(0, 0)
ActiveSheet.Name = "Teil" & Replace(Tabname, ":", "-")
Next Spa
Next Zei
.Activate
End With
End Sub
Gruß
Reinhard
).