This may be a zen question rather than a "rule" one.
If I want code to be on demand for a whole workbook I use Module1 and I've done so forever and ever. I probably got hooked because macro recorder lands there, in Module1 or Module2 (etc.). (* see footnote)
It just occurred to me, why not just use the ThisWorkbook area? (Double click ThisWorkbook in Ctrl-R Project Explorer)
As I've been doing it, my code goes in modules, and ThisWorkbook code is just for events (e.g. Sub Workbook_BeforeSave). Should I consider using ThisWorkbook for my code; or should I just leave that for events, and use modules for my code?
* footnote: Interestingly, the macro recorder (by default) "says" it's putting the code in "This Workbook" - but it really refers to a Module in activeworkbook, not activeworkbook's code section ThisWorkbook.
Bookmarks