Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Multiple Modules, or one big one?

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Multiple Modules, or one big one?

Any disadvantages are negligible. IMO it is the right approach, indeed a
necessary approach if you want to be able to maintain your code in the
future.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
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!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with modules. Cloudy New Users to Excel 1 June 17th 08 10:10 AM
Running Multiple Modules With 1 Command Gary Excel Programming 2 January 31st 04 10:07 PM
modules libby Excel Programming 4 November 22nd 03 01:34 PM
using forms and modules in multiple workbooks scrabtree23[_2_] Excel Programming 1 November 11th 03 10:57 PM
Class Modules vs Modules Jeff Marshall Excel Programming 2 September 28th 03 07:57 PM


All times are GMT +1. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"