View Full Version : Saving in Bits
Geoff
11-05-2011, 02:35 AM
I noticed, when looking at someone else's VBa project recently, that instead of saving all forms, modules etc as a single .dot file he had them saved individually (quite a list of .frm, .frx and .bas files) and, presumably, loaded them in as required when a new document was started based on the template. I guess it would all be managed from Auto_New in ThisDocument.
Why is this done?
And, if it is a good idea, how is it done?
TIA
Geoff
macropod
11-07-2011, 04:27 AM
Hi Geoff,
Other than perhaps making it easier to replace individual modules without having to open the document to edit it, I can't see any particular advantage. The disadvantage is that you'll then need extra code to load the various modules - and this can become a fairly complex logic exercise if they're only to be loaded 'as required'. There's also a greater risk of the whole process falling over if a stand-alone module is edited/moved/deleted.
Geoff
11-11-2011, 02:49 PM
Many thanks.
I can stick that in the "too difficult" drawer then, along with classes :-)
Geoff
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.