5 replies
by dklippert
This is the difference between Absolute and Relative addressing.
Record a macro. When the little Stop recording tooolbar appears, notice the button on the right. That toggles the address mode. You want Relative Reference. When you record in this fashion, the macro will only work on the area you select.
by james.hess
I'm confused. I click on the little box in the stop toolbar. it shows relative, but I can't get it toggle to something other than relative.
How do I record in a mode that will support in a mode that will be dynamic and permit me to highlight any area of cells.
by dklippert
I mislead. Just select a range, record your macro and then stop it. The applicable piece of code is Selection. As long as you don't move to another spot before stoping, the macro will be universal.
As far as recording Absolute vs relative:
By default it records as absolute. Try it both ways.
Record a macro an click on the relative button.
Go to cell A1 and color it Red.
Do it again and click on the Relative button again You can see if it's "pushed in" or not.
One macro will jump to thesame location, the other will offset relative to the active cell.
by james.hess
by james.hess
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending