Macro relative cell reference

D

decimal

When I record a macro whether I use the relative reference button or not. If
I place the cursor somewhere else in the spreadsheet to perform the macro. It
always goes back tot he original cell I first recorded it in. Perhaps the
relative ref button has nothing to do with that. Is there a way to tell it
just to run the macro wherever I place the cursor and tell it to run? The
instructions imply in my opiniion that it would always run wherever I chose.
No matter what I try it always goes back ot the original cell it was first
recorded in.
 
O

Otto Moehrbach

Please post your macro and provide details about what you expect the macro
to do and what it actually does. HTH Otto
 
O

Otto Moehrbach

Please post your macro and provide details about what you expect the macro
to do and what it actually does. HTH Otto
 
R

Reitanos

If you record selecting a cell in either mode it will either go to
that cell (absolute) or move that distance from the active cell
(relative). If you want it to start in the active cell instead, you
can remove the whatever.select reference you recorded.

The way to tell it run from anywhere is to select a cell first, and
THEN turn on the recorder.
 
R

Reitanos

If you record selecting a cell in either mode it will either go to
that cell (absolute) or move that distance from the active cell
(relative). If you want it to start in the active cell instead, you
can remove the whatever.select reference you recorded.

The way to tell it run from anywhere is to select a cell first, and
THEN turn on the recorder.
 
S

Sheeloo

It would have helped if you had posted the macro...
Anyway first line would be something like this
Range("C23").Select
change it to ActiveCell.Select

Rest of the steps should be relative to the first cell... if so the above
change will solve your problem.
 

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