Please help....
I am trying to insert an Excel formula to a table via vba coding as follows:
but the cells just display the formula as text!!!
Does anyone know what could be causing this?
What am I doing wrong?
Cheers,
Neemi
I am trying to insert an Excel formula to a table via vba coding as follows:
Code:
Range(15, r.Row).FormulaR1C1 = "=IF(N" & r.Row & "-O" & r.Row & "<=0,0,N" & r.Row & "-O" & r.Row & ")"
but the cells just display the formula as text!!!
Does anyone know what could be causing this?
What am I doing wrong?
Cheers,
Neemi