CODE
Range("E1").Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[13]>0,MIN(ROUNDDOWN(Control!N7/RC[16],0),RC[13]))"
ActiveCell.FormulaR1C1 = _
"=IF(RC[13]>0,MIN(ROUNDDOWN(Control!N7/RC[16],0),RC[13]))"
I run the macro, and Lo and behold, praise the lord, a miracle occurs, and in my spreadsheet, I get things like this:
CODE
=IF(R3>0,MIN(ROUNDDOWN(Control!'N7'/U3,0),R3))
Now I'm totally ok with RC[] returning cell references, but getting 'N7' instead of N7 is breaking my reference. What is going on?
Jason