TheBlueMusketeer
New Member
- Joined
- Sep 29, 2012
- Messages
- 12
Hello,
Consider the following line of code:
Cells(2,10).FormulaR1C1 = "=RC[-2]*RC[-1]/R[40]C[-2]"
I want to be able to anchor the R[40]C[-2] part as I will be dragging this formula down the sheet and I don't want the divisor's cell reference to change. Is there a way to accomplish this?
I was able to get around this problem by using the value in cell R[40]C[-2] in the formula instead but was wondering if anybody knew how to anchor relative references.
Thanks!
Consider the following line of code:
Cells(2,10).FormulaR1C1 = "=RC[-2]*RC[-1]/R[40]C[-2]"
I want to be able to anchor the R[40]C[-2] part as I will be dragging this formula down the sheet and I don't want the divisor's cell reference to change. Is there a way to accomplish this?
I was able to get around this problem by using the value in cell R[40]C[-2] in the formula instead but was wondering if anybody knew how to anchor relative references.
Thanks!