- Joined
- Jul 19, 2016
- Messages
- 1
- Reaction score
- 0
I want to use absolute reference for coding in my excel vba for example:
ActiveCell.FormulaR1C1 = _
"=SLOPE('Second Reaction Data'!I4:I61,'Second Reaction Data'!D461)"
I want it this way but it is not working.
It works if it is typed as follows:
ActiveCell.FormulaR1C1 = _
"=SLOPE('Second Reaction Data'!R[-124]C[7]:R[-67]C[7],'Second Reaction Data'!R[-124]C[2]:R[-67]C[2])"
Can someone help how to run this formula using absolute cell referencing ex: A1:A4 instead of RC
ActiveCell.FormulaR1C1 = _
"=SLOPE('Second Reaction Data'!I4:I61,'Second Reaction Data'!D461)"
I want it this way but it is not working.
It works if it is typed as follows:
ActiveCell.FormulaR1C1 = _
"=SLOPE('Second Reaction Data'!R[-124]C[7]:R[-67]C[7],'Second Reaction Data'!R[-124]C[2]:R[-67]C[2])"
Can someone help how to run this formula using absolute cell referencing ex: A1:A4 instead of RC