Macro recorder

G

Guest

How can I use relative references in my macro when I
record a macro with the "record"-tool?
 
P

Peter Atherton

-----Original Message-----
How can I use relative references in my macro when I
record a macro with the "record"-tool?
.
Use the arrowkeys in a formula this will give you
something like this

ActiveCell.FormulaR1C1 = "=RC[-3]*RC[-1]"

Regards
Peter
 
J

Jim Rech

Click the "Relative Reference" toolbutton (the second toolbutton) on the
Stop Recording toolbar, which should appear when you start recording.

If it doesn't appear that would be because it was manually closed at some
point when a macro was being recorded. To remedy that select in under View,
Toolbars while recording a macro.
 

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