Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You have a couple of choices.
In your workbook_open code select the sheet you want then run the macro. sub workbook_open() Sheets("Sheet1").select macroname end sub Or select the proper sheet in your macro. Gord Dibben MS Excel MVP On Fri, 14 Aug 2009 14:15:03 -0700, Flipper wrote: Ok, thanks Luke. I did get Automatic Run to work, but it leads me to another problem, which is that whatever worksheet that was active when I closed the workbook is where the Automatic Run places the results of the macro, rather than where the macro is supposed to go. As follows The workbook contains about 20 separate worksheets. I have 2 macros, each macro applies specifically to 1 worksheet. That, one macro performs a series of steps where it opens another file, copies data, and then pastes that data into that specific worksheet. When I added the Automatic Run, it pasted the data into whatever worksheet was active when I previously closed the workbook. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to write a macro | Excel Discussion (Misc queries) | |||
Can one VB macro write another macro? | Excel Worksheet Functions | |||
How to write a macro?? | Excel Discussion (Misc queries) | |||
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? | Excel Worksheet Functions | |||
Q: how can I write this macro? | Excel Discussion (Misc queries) |