Excel How to code in excel vba 2007 using absolute refernce for cells

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.
:D
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
 
Joined
Jul 11, 2010
Messages
5,758
Reaction score
552
Hi srinlvashydmu, Welcome to PCR, I am afraid I do not have not the answer to your question but I am sure someone else will point you in the right direction. Once again welcome to our site and please participate and nice to have you aboard.:thumb:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top