gino59
Active Member
- Joined
- Jul 26, 2010
- Messages
- 496
Hi all,
Keep getting syntax errors on this code.
Range("X11").FormulaR1C1 = _
"=IF($W$3<DATEVALUE(#1/1/2011#),SUMIFS(mData[DEPOSIT],mData[TRANSACTION],R11C23,mData[YEAR],lastYEAR,mData[MONTH],lastMONTH),SUMIFS(mData[DEPOSIT],mData[TRANSACTION],$V11,mData[YEAR],currYEAR,mData[MONTH],lastMONTH))"
I've tried just using .Formula with the actual cell reference V11, but that bombs as well.
I'm just not up to speed on my R1C1 notation!! Any suggestions??
Many thanks!!
Gino
Keep getting syntax errors on this code.
Range("X11").FormulaR1C1 = _
"=IF($W$3<DATEVALUE(#1/1/2011#),SUMIFS(mData[DEPOSIT],mData[TRANSACTION],R11C23,mData[YEAR],lastYEAR,mData[MONTH],lastMONTH),SUMIFS(mData[DEPOSIT],mData[TRANSACTION],$V11,mData[YEAR],currYEAR,mData[MONTH],lastMONTH))"
I've tried just using .Formula with the actual cell reference V11, but that bombs as well.
I'm just not up to speed on my R1C1 notation!! Any suggestions??
Many thanks!!
Gino
Last edited: