You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I noticed that Bullen, Bovey, et al consistently use Auto_Open macros in their books rather than the Workbook_Open event. But I can't find any place where they discuss why.
I also notice on Bovey's AppsPro site he has a technique for trapping all events from the Workbook module and handling them instead in a custom event handling module.
So the questions.
First, why do they use Auto_Open? If it is for backward compatability with older versions of Excel, that is irrelevent for me. But if there is a valid technical reason... well, then, that may be an entirely different story.
Second, on his site Bovey alludes to possible dire consequences of putting event handling code in the workbook module but he doesn't really make the case fully. So is this a genuine concern? I'd like to decide on a standardized approach to structuring my code and I'd prefer not to add the overhead and complexity if it's not really a big concern.