View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Multiple Modules, or one big one?

Adrian,

There are no disadvantages, and many advantages, to using several
modules rather than one large module. Distribute procedures
among modules based on their function, e.g., UDFs in one module,
utility code in another, menu/command bar code in another, etc.
Give each module a meaningful name rather than sticking with the
default Module1, Module2, etc.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Adrian" wrote in message
...
Some of you will know that I am gradually rewriting a huge
suite of .XLM macrosheets in VBA, and I'm learning as I go.
The work done so far is now a large enough project for me
to think about spreading it into several modules, instead
of keeping it all in one.
The advantages are obvious - but are there any
disadvantages, however trivial?

By the way, many many thanks to those that have helped me
already - you know who you are!