If I enter this in VBA code, it works fine:
But if I enter this:
This time I get the error message "Runtime Error '438': Object does not support this property or method."
How can I solve this as I have to use a variable to build up what the formula-string will be. Thanks you!
Code:
Cells(X, Y).FormulaR1C1 = "=ROUND(RC[-12]*2.31556463,2)-401.59"
But if I enter this:
Code:
Dim TheFormula As String
Let TheFormula="=ROUND(RC[-12]*2.31556463,2)-401.59"
cells(x,y).formular1c1= TheFormula
How can I solve this as I have to use a variable to build up what the formula-string will be. Thanks you!