Autofill
14.02.2021 11:36:32
Fred
Hallo Excel Profis,
ich habe eine Frage zu "Autofill im Makro".
Ich möchte in zuvor definierten Zeilen die Zellen mit einem Wert befüllen.
Beginn: Spalte "A", Zeile:
LZ_1 = .Cells(.Rows.Count, 2).End(xlUp).Row + 1
Bis: Spalte "A", Zeile:
LZ_2 = .Cells(.Rows.Count, 3).End(xlUp).Row
schreibe ich das Makro ...
With ActiveSheet
LZ_1 = .Cells(.Rows.Count, 2).End(xlUp).Row + 1
LZ_2 = .Cells(.Rows.Count, 3).End(xlUp).Row
.Range("A" & LZ_1).AutoFill Destination:=Range("A" & LZ_1:"A"&LZ_2), Type:=xlFillDefault
End With
... ist nach "Destination:=Range" etwas falsch formuliert.
Kann mir bitte jemand den Fehler nennen?!
Gruss
Fred