Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Getting macro to copy to starting cell | Excel Worksheet Functions | |||
Macro help - copy a cell down | Excel Discussion (Misc queries) | |||
copying cell names | Excel Discussion (Misc queries) | |||
Possible Lookup Table | Excel Worksheet Functions | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions |