Gruppe
Matrix
Problem
Wie kann ich in eine via VBA zu erstellende Excel-Formel eine Variable einbauen?
StandardModule: basMain
Sub Summebilden()
Dim iRow As Integer, iValue As Integer
iValue = 5
For iRow = 2 To 23
Cells(iRow, 4).FormulaArray = _
"=SUM((r2c1:r23c1=1)*(r2c3:r23c3=" & iRow & ")*(r2c[-2]:r23c[-2]))"
Next iRow
End Sub