A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro relative cell reference



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2009, 09:47 PM posted to microsoft.public.excel.worksheet.functions
decimal
external usenet poster
 
Posts: 3
Default Macro relative cell reference

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.
  #2  
Old May 21st, 2009, 09:51 PM posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach[_2_]
external usenet poster
 
Posts: 716
Default Macro relative cell reference

Please post your macro and provide details about what you expect the macro
to do and what it actually does. HTH Otto
"decimal" wrote in message
...
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.



  #3  
Old May 21st, 2009, 10:28 PM posted to microsoft.public.excel.worksheet.functions
Reitanos
external usenet poster
 
Posts: 230
Default Macro relative cell reference

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.


On May 21, 4:47*pm, decimal wrote:
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.


  #4  
Old May 21st, 2009, 11:36 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default Macro relative cell reference

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.

"decimal" wrote:

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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.