Fenrirshowl
Technical User
Hi everybody
I was wondering if there is a way to set up a piece of VBA code that runs whenever a new workbook is opened in Excel (I am currently using 2007). Or if there definitely isn't then to know there isn't so I stop trying to find a way!
I can't think where it would need to be located and what code is needed for an application event rather than workbook event.
I know you can set up a module and use the Open event for that workbook, but can you run one from say an Add-in, on workbooks which do not have any macros / modules?
My aim is to try to record every workbook opened by people in my dept on a rolling 4 week basis. This is to log where data may have been extracted from, where workbooks used are etc - so providing some sort of basic audit trail for inspection if people are absent and we need to identify what has been done. If taken to extreme it would be similar to using MS Outlook's Journal but as a central log for 20+ people in the team.
Any advice happily received and I am happy to receive pointers and do the rest of the research needed!
Fen
I was wondering if there is a way to set up a piece of VBA code that runs whenever a new workbook is opened in Excel (I am currently using 2007). Or if there definitely isn't then to know there isn't so I stop trying to find a way!
I can't think where it would need to be located and what code is needed for an application event rather than workbook event.
I know you can set up a module and use the Open event for that workbook, but can you run one from say an Add-in, on workbooks which do not have any macros / modules?
My aim is to try to record every workbook opened by people in my dept on a rolling 4 week basis. This is to log where data may have been extracted from, where workbooks used are etc - so providing some sort of basic audit trail for inspection if people are absent and we need to identify what has been done. If taken to extreme it would be similar to using MS Outlook's Journal but as a central log for 20+ people in the team.
Any advice happily received and I am happy to receive pointers and do the rest of the research needed!
Fen