How do I write code to "Workbook_Open" from within a VBA?
I have a macro that sets up a new workbook and adds macros to it.
To do that, I export a module and then import it into the new file. My question is how I can use VBA in the master workbook to VBA code to the new Workbook's "Workbook_Open" VBA? I'm only talking about 1 line to call up a dialog box so hopefully it's not that difficult. Thanks MikeZz |
How do I write code to "Workbook_Open" from within a VBA?
See this webpage Mike
http://www.cpearson.com/excel/vbe.aspx -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "MikeZz" wrote in message ... I have a macro that sets up a new workbook and adds macros to it. To do that, I export a module and then import it into the new file. My question is how I can use VBA in the master workbook to VBA code to the new Workbook's "Workbook_Open" VBA? I'm only talking about 1 line to call up a dialog box so hopefully it's not that difficult. Thanks MikeZz |
How do I write code to "Workbook_Open" from within a VBA?
Wow, all is there! Thanks!
|
How do I write code to "Workbook_Open" from within a VBA?
Wow, Thanks for the quick reply.
Don't have time to read it now but it looks like a site I had linked before but I recently lost my favorites. "Ron de Bruin" wrote: See this webpage Mike http://www.cpearson.com/excel/vbe.aspx -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "MikeZz" wrote in message ... I have a macro that sets up a new workbook and adds macros to it. To do that, I export a module and then import it into the new file. My question is how I can use VBA in the master workbook to VBA code to the new Workbook's "Workbook_Open" VBA? I'm only talking about 1 line to call up a dialog box so hopefully it's not that difficult. Thanks MikeZz |
All times are GMT +1. The time now is 09:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com