+ Reply to Thread
Results 1 to 7 of 7

Help required for newbie to understand VBA overall structure

  1. #1
    Registered User
    Join Date
    08-26-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2013 64bit
    Posts
    25

    Help required for newbie to understand VBA overall structure

    Hello folks .. I am a new member of the forum,

    I am new to VBA and seeking help to learn. Hopefully some guru here will take pity and answer what may seem to be a silly question.
    This is a learning question: I want to hire some expert programmers to work on a project but want to keep each part separated for secrecy purposes.
    Each programmer will have the parameters for the complete project but will see only their part.
    Each part is complete in itself but shares common sheets and controls.

    Are these code parts called modules, or is there another name for them?
    I understand the code parts can be delivered in text files, but how would I combine them into the complete project?

    I have hunted for some time to try and get some idea of this, without success.
    Can anyone advise me, I would be most appreciative.
    Thank you.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,929

    Re: Help required for newbie to understand VBA overall structure

    The code parts are modules. There are three types of modules:

    Worksheet modules: These are code modules that are each associated with a specific worksheet. These exist by default for each worksheet.

    Modules (I don't know what might be the proper name): These are standalone modules that are created by the developer. When created they get default names like Module1 but the names can be changed. Public Const and user-defined functions can only be defined in this type of module.

    Class Modules: Define a class.

    I have been a professional software developer and software development manager for 37 years. Defining a project of any significant size where the developers can't talk to each out of secrecy concerns other is a fool's errand. I don't have time to write a page about why this idea is doomed but I don't advise it. The idea of partitioned modules that share common sheets and controls is the final nail in the coffin. This is known as common environment coupling and is a bad idea to start with, and if you try to do this without letting developers interact it can't work at all.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-26-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2013 64bit
    Posts
    25

    Re: Help required for newbie to understand VBA overall structure

    Thank you very much for your kind and helpful advice. I apologise for the delay - I've been out of state for a while since making my question.

    I had pretty much worked out for myself the dangers involved in the secrecy aspect I am now working with one developer only.

    Again, my thanks ... I am learning.

  4. #4
    Registered User
    Join Date
    05-24-2014
    Posts
    12

    Re: Help required for newbie to understand VBA overall structure

    In Excel VBA, there are four main types of modules:

    Standard Code Modules, which contain custom macros and functions,
    Workbook And Sheet Code Modules, which contain event procedures for the workbook, and worksheets and chart sheets,
    User Forms, which contain code for the controls on a UserForm object,
    Class Modules, which contain Property Let, Get, and Set procedures for Objects that you create.

  5. #5
    Registered User
    Join Date
    08-26-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2013 64bit
    Posts
    25

    Re: Help required for newbie to understand VBA overall structure

    Thank you .. this is very clear and answers my questions fully. I appreciate your time.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,929

    Re: Help required for newbie to understand VBA overall structure

    indecent43 included Workbook and UserForm modules, which I had neglected to include. Workbook modules are intended for handling events that occur at the workbook level, and UserForm modules are the code behind UserForms.

  7. #7
    Registered User
    Join Date
    08-26-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2013 64bit
    Posts
    25

    Re: Help required for newbie to understand VBA overall structure

    Thank you for the clarification, appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Structure formulas to make them easier to understand
    By EckhardGeerdes in forum Excel General
    Replies: 2
    Last Post: 01-26-2016, 10:36 AM
  2. Script Newbie; help required!
    By eSmith313 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2015, 07:15 AM
  3. Newbie doesn't understand why his code isn't working...
    By Dan Carlson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2014, 02:07 AM
  4. help required in excel to auto calculate a bonus structure
    By landyjay in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2014, 01:49 PM
  5. VBA to summerize the workbook sheets data in a required structure
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2012, 11:44 AM
  6. [SOLVED] object required problem. sorry i'm a newbie...
    By gconner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2012, 02:10 AM
  7. [SOLVED] Effective Data structure required
    By thiaga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2006, 04:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1