26.10.2014, 14:16
Hallo,
mal in aller schnelle fabriziert
Code:
Sub TestMakro()
Range("B2").Select 'Zelle B2 angewahlt
ActiveCell.FormulaR1C1 = "100" 'Zahl 100 eingetippt
Range("C2").Select
ActiveCell.FormulaR1C1 = "*"
Range("D2").Select
ActiveCell.FormulaR1C1 = "100"
Range("E2").Select
ActiveCell.FormulaR1C1 = "*"
Range("F2").Select
ActiveCell.FormulaR1C1 = "50"
Range("G2").Select
ActiveCell.FormulaR1C1 = "="
Range("H2").Select 'Zelle H2 für Formel angewählt
ActiveCell.FormulaR1C1 = "=SUM(RC[-6]*RC[-4]*RC[-2])" 'Formel = =SUMME(B2*D2*F2)
Range("H2").Select
End Sub