I am receiving the #REF ! error in cells on a sheet generated when applying the following code into a vba sub.
When I view the formula in the sheet the #REF ! symbol is in the first R1C1 cell referenced (R[-23]C[-7]) and (R[-69]C[-7])
I am confused as to why the #REF ! error is being displayed. How are the #REF ! cells "invalid"?
When I view the formula in the sheet the #REF ! symbol is in the first R1C1 cell referenced (R[-23]C[-7]) and (R[-69]C[-7])
Code:
Range("L6").value = "dprice1" Range("L7").FormulaR1C1 = "=((R[-23]C[-7])-(RC[-7]))/RC[-7]"
Range("M6").value = "dprice2"
Range("M7").FormulaR1C1 = "=((R[-69]C[-8])-(RC[-8]))/RC[-8]"
I am confused as to why the #REF ! error is being displayed. How are the #REF ! cells "invalid"?