Mein Problem:
Ich nutze das folgende Makro zur Formatierung einer Tabelle.
Es funktioniert bis zu einer Zeilenanzahl von ca. 3500 einwandfrei.
Enthält die Tabelle mehr Zeilen bricht das Makro mit der Fehlermeldung: "Markierung ist zu groß" ab.
Sub Formatieren()
Dim z As Long
For z = 10000 To 5 Step -1
If Application.CountA(Range(Cells(z, 2), Cells(z, 56))) > 0 Then Exit For
Next
Rows("2:2").Select
Selection.Copy
Rows("3:" & z).Select
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("A2").Select
End Sub
Es wäre toll, wenn mir jemand einen Tip geben könnte wie ich die Begrenzung umgehen kann.
Danke und GRuß
Wilfried