Kopieren der Formel aktive Spalte
08.01.2010 09:15:12
walli
Guten Morgen,
ich habe ein Makro (auch über Forum), für das Kopieren der
Formel.
Public Sub Spalte_Aktive_Formel_kopieren()
Application.Calculation = xlCalculationManual
Dim i As Long
With ActiveSheet
For i = 4 To .Cells(.Rows.Count, 1).End(xlUp).Row
.Cells(i, 30).Value = "=RC[-9]*1" ' zb. spalte 9 von Spalte AD aus gezählt
Next
End With
Application.Calculation = xlCalculationAutomatic
End Sub
Nun möchte ich, wenn ich auf einer Spalte stehe, das ich ab Zeile 4 die Formelper Makro nach unten kopieren kann.
Das Ende wird über die Spalte A definiert.
mfg walli