D
Dean
I have the following formula in EXCEL (it works)
=H78*PerfPercent*ScalingFactor*C78/SUMIF(F55:F77,"=y",C55:C77)
which I want to have visual basic type into the current cell.
Here is my attempt at writing it in VBA but I am getting a compile error
(expected end of statement). Can someone help me, please with my syntax
(perhaps sumif doesn't work in VBA, or perhaps I have left out a comma or
something)?
ActiveCell.FormulaR1C1 =
"=H78*PerfPercent*ScalingFactor*C78/SUMIF(R[-23]C[-3]:R[-1]C[-3]," = Y
",R[-23]C[-6]:R[-1]C[-6])"
Thanks!
Dean
=H78*PerfPercent*ScalingFactor*C78/SUMIF(F55:F77,"=y",C55:C77)
which I want to have visual basic type into the current cell.
Here is my attempt at writing it in VBA but I am getting a compile error
(expected end of statement). Can someone help me, please with my syntax
(perhaps sumif doesn't work in VBA, or perhaps I have left out a comma or
something)?
ActiveCell.FormulaR1C1 =
"=H78*PerfPercent*ScalingFactor*C78/SUMIF(R[-23]C[-3]:R[-1]C[-3]," = Y
",R[-23]C[-6]:R[-1]C[-6])"
Thanks!
Dean