Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But the code exists within workbook1.
Therefore, once you open workbook2 and closed workbook1, the code no longer exists to run. Does that make sense? Can you write this code in a separate workbook that you can leave open? eg Workbook1 holds what it currently holds without the code, workbook3 holds the code - both are open. The code is run from workbook3, closes workbook1, opens workbook2, does what is required, closes workbook2 then reopens workbook1, all the while workbook3 remains open. " wrote: I'm trying to use workbook.open to open another file and then I want this other file to automatically run a macro. This other macro starts by closing out the original file and then running a bunch of other code. I tried using a Workbook_Open sub but as soon as the code closes the original file it just stops running. I've tried everything I can think of but I cannot come up with a solution. I need to open a specified file, then use this file to close the original and run other code. Any ideas? Thanks Adam Bush |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autoopen of an Excel File at the set time | Excel Programming | |||
Open a file do a macro ( made) and open next succesive file | Excel Programming | |||
Macro to call a file that has a auto open macro in the file itself | Excel Programming | |||
'Yes' 'No' button on autoopen macro | Excel Programming |