D
Dave
Is the Friday afternoon?
I'm trying to create a formula in VBA. The formula is:
=IF(I3<>"",IF(J3<>"",SUM(J3:L3)*I3+M3,""),"")
I've written the code, but VBA is not accepting it. So far I have:
..Cells(lNextRow, "N").Formula = "=IF(I" & lNextRow & "<>"""","IF(J" &
lNextRow & "<>"""","SUM(J" & lNextRow & ":L" & lNextRow & ")*I" & lnextrow
&"+M" & lnextrow & ",""""),"""")"
But it's in red. I can't see what's wrong. Does anyone see it?
I'm trying to create a formula in VBA. The formula is:
=IF(I3<>"",IF(J3<>"",SUM(J3:L3)*I3+M3,""),"")
I've written the code, but VBA is not accepting it. So far I have:
..Cells(lNextRow, "N").Formula = "=IF(I" & lNextRow & "<>"""","IF(J" &
lNextRow & "<>"""","SUM(J" & lNextRow & ":L" & lNextRow & ")*I" & lnextrow
&"+M" & lnextrow & ",""""),"""")"
But it's in red. I can't see what's wrong. Does anyone see it?