Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sony654
 
Posts: n/a
Default Returning Macro to Starting Cell

How do I run a macro and always have the result return to the starting cell.
Meaning, if the cursor is in cell d3 when I launch the macro, I want the last
step of the macro to return to d3. Then the next time I run it, it starts in
e3 and returns to e3. Thanks for your help. Sony
--
Sony Luvy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Returning Macro to Starting Cell

Send the value to ACtivecell.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sony654" wrote in message
...
How do I run a macro and always have the result return to the starting

cell.
Meaning, if the cursor is in cell d3 when I launch the macro, I want the

last
step of the macro to return to d3. Then the next time I run it, it starts

in
e3 and returns to e3. Thanks for your help. Sony
--
Sony Luvy



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sony654
 
Posts: n/a
Default Returning Macro to Starting Cell

Bob - please clarify, how do I send to the ACtivecell? What does that mean?
Thanks
--
Sony Luvy


"Bob Phillips" wrote:

Send the value to ACtivecell.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sony654" wrote in message
...
How do I run a macro and always have the result return to the starting

cell.
Meaning, if the cursor is in cell d3 when I launch the macro, I want the

last
step of the macro to return to d3. Then the next time I run it, it starts

in
e3 and returns to e3. Thanks for your help. Sony
--
Sony Luvy




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Returning Macro to Starting Cell

Option explicit
sub test()
Dim ActCell as range

set actcell = activecell

'do your stuff

application.goto actcell

end sub

sony654 wrote:

How do I run a macro and always have the result return to the starting cell.
Meaning, if the cursor is in cell d3 when I launch the macro, I want the last
step of the macro to return to d3. Then the next time I run it, it starts in
e3 and returns to e3. Thanks for your help. Sony
--
Sony Luvy


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Returning Macro to Starting Cell

Save the activecell like this

Set startCell = Activecell

then at the end of the macro, select it

startCell.Select

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sony654" wrote in message
...
Bob - please clarify, how do I send to the ACtivecell? What does that

mean?
Thanks
--
Sony Luvy


"Bob Phillips" wrote:

Send the value to ACtivecell.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"sony654" wrote in message
...
How do I run a macro and always have the result return to the starting

cell.
Meaning, if the cursor is in cell d3 when I launch the macro, I want

the
last
step of the macro to return to d3. Then the next time I run it, it

starts
in
e3 and returns to e3. Thanks for your help. Sony
--
Sony Luvy






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting macro to copy to starting cell sony654 Excel Worksheet Functions 3 February 4th 06 07:16 PM
Macro help - copy a cell down gjcase Excel Discussion (Misc queries) 3 September 4th 05 05:09 AM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"