I am using FormulaR1C1, as in:
Worksheets(sheet1).Range("b5").FormulaR1C1 = "=R[1]C[2]"
Sometimes the index will be raltive to the current cell (in this case, "c7") and sometimes absolute (in this case, "b3").
How can I conrtol it?
R[1]C[2] is relative, and in B5 should refer to cell [blue]D6[/blue]
R1C2 would be absolute and refer to cell [blue]B1[/blue]
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.