Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy And Paste Macro Syntax Problem | Excel Worksheet Functions | |||
Do Until syntax problem | Excel Programming | |||
Req: Help requested with Macro problem and syntax errors (any fisherman out there!!) | Excel Programming | |||
How do you insert an & sign in a footer? i.e. Dean & Deluca | Excel Discussion (Misc queries) | |||
Syntax problem in defining OnAction macro definition held in Add-in! | Excel Programming |