M
Marss
How can I use that "Relative Reference" when I'm recording a macro in Excel
2003?
2003?
Thank you. My problem is that I have a formula and my code looks like
ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"
with or without "Relative Reference". Is this OK for cells with formulas?
Yes, for cells without formulas the code looks like you told me.
Marss.
Gord Dibben said:Just click it on to record relative references rather than hard-coded cell
addresses.
It will record code such as ActiveCell.Offset(5, 0).Select
rather than Range("A8").Select
And if you see the Stop Recording Toolbar but no Relative Reference button,
you can "reset" the Toolbar under Tools>Customize>Toolbars. You may have
dragged the button off.
The usual cause of losing the entire Stop Recording Toolbar is turning it off
when recording by using the "X" to close. Always hit the "stop recording"
button.
Gord Dibben Excel MVP