brindle1121
New Member
- Joined
- Feb 25, 2009
- Messages
- 4
I keep reading that auto_open is not a preferred, modern method and that it is retained for backwards compatibility purposes only. But auto_open is the only way I've found (so far) to trigger an XL event when a module opens in my application.
I have an application where the event detection trigger needs to be (seemingly) placed in a module. This is because the module's code is copied into the new workbook from a xxx.bas file located elsewhere. The IMPORT instruction.
application.vbe.activevbproject.vbcomponents.import c:\....
copies the file into the new module properly. (I have not found a way to copy code from an external source into a workbook or worksheet specific module).
When the new workbook opens, only the auto_open code creates an event. Workbook_open and Spreadsheet_open do not function in a module.
Is there another way to do this?
I have an application where the event detection trigger needs to be (seemingly) placed in a module. This is because the module's code is copied into the new workbook from a xxx.bas file located elsewhere. The IMPORT instruction.
application.vbe.activevbproject.vbcomponents.import c:\....
copies the file into the new module properly. (I have not found a way to copy code from an external source into a workbook or worksheet specific module).
When the new workbook opens, only the auto_open code creates an event. Workbook_open and Spreadsheet_open do not function in a module.
Is there another way to do this?