ich komm nicht weiter mit dem unten stehenden Code. Ich möchte in der FOR SCHLEIFE die Variable für die Spalte setzen.
Also anstatt @INDIRECT(""Eingabe!ab"" & ROW(R8C28)+RC50)" möchte ich @INDIRECT(""Eingabe!hier die Variable "" & ROW(R8C28)+RC50)".
Hoffe Ihr könnt mir da bitte weiterhelfen.
die Funktion zur Ermittlung der Spalte in Buchstabe habe ich schon.
Gruß Stefan
Cells(7, 51).Activate
ActiveCell.FormulaR1C1 = "=@INDIRECT(""Eingabe!ab"" & ROW(R8C28)+RC50)"
Selection.AutoFill Destination:=Range("AY7:AY382"), Type:=xlFillDefault
For i = 51 To 65
z = z + 1
w = buchstabe(z)
Cells(7, z).Activate
ActiveCell.FormulaR1C1 = "=@INDIRECT(""Eingabe!""&w & ROW(R8C28)+RC50)"
f = ActiveCell.Address
g = ActiveCell.Offset(375, 0).Address
Selection.AutoFill Destination:=Range(f, g), Type:=xlFillDefault
Next i