Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2009, 03:09 AM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question auto_open vs workbook_open

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.
 
Old July 22nd, 2009, 04:43 AM
Registered User
 
Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

Coincidentally enough, this was asked of Rob recently here.
HTH





Similar Threads
Thread Thread Starter Forum Replies Last Post
Launch Macro Recorder ON from Workbook_Open skhan007 Excel VBA 2 October 29th, 2008 09:58 PM
Auto_Open in Excel Template Shasur Excel VBA 2 January 4th, 2006 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.