Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I wouldn't be surprised if your code could be rewritten so that no .selects or
..activates would be included. Ed Davis wrote: The reason I use .select and .activate is that my macros open another file and then I copy values from several areas from several sheets and import the data to the other open file. So I am bouncing in and out of both workbooks. "Dave Peterson" wrote in message ... I think I'd try to rewrite the macro so that it didn't use .select's and .activate's. Just updated the objects directly. But one more way: 'declare some variables Dim mySelection as range Dim myActCell as Range 'do this at the top. set myActcell = activecell set mySelection = selection 'do lots of stuff 'right before you finish application.goto mySelection myActcell.activate Ed Davis wrote: I have a workbook that has over 90 sheets. After invoking a macro that changes to other sheets I would like to return to the sheet where the macro first started from. Does anyone know how I can do this? -- Dave Peterson -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
search for and return more than one row in a sheet | Excel Worksheet Functions | |||
Cell and Sheet Reference/Return | Excel Worksheet Functions | |||
Return number of current sheet | Excel Worksheet Functions | |||
return cell from named sheet | Excel Discussion (Misc queries) | |||
How can I cause a cell to return the sheet name i.e. sheet 1? | Excel Worksheet Functions |