Makro verkleinern ?
Odje.K
Kann man das folgende Makro noch irgendwie aufkürzen?
Habe es mit dem Makrorekorder erstellt.
Private Sub ZahlenTransponieren()
Application.ScreenUpdating = False
Range("A13") = 1
Range("A14") = 2
Range("A13:A14").AutoFill Destination:=Range("A13:A50"), Type:=xlFillDefault
Range("A1:A3").NumberFormat = "00"
' Lfd.Nr.01-38
Range("A1:G1").Copy
Range("B13").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A2:G2").Copy
Range("B20").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A3:G3").Copy
Range("B27").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A4:G4").Copy
Range("B34").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A5:G5").Copy
Range("B41").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A6:C6").Copy
Range("B48").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("D13") = 39
Range("D14") = 40
Range("D13:D14").AutoFill Destination:=Range("D13:D50"), Type:=xlFillDefault
Range("A1:A3").NumberFormat = "00"
'Lfd.Nr.39-76
Range("D6:G6").Copy
Range("E13").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A7:G7").Copy
Range("E17").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A8:G8").Copy
Range("E24").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A9:G9").Copy
Range("E31").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A10:G10").Select
Range("E38").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A11:F11").Copy
Range("E45").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Application.CutCopyMode = False
Range("A1").Select
Application.ScreenUpdating = True
End Sub
Einstweilen herzlichen Dank an alle, die sich für mich bemühen.
MfG
Odje