Consulting

Results 1 to 3 of 3

Thread: Do All Modules Get Loaded??

  1. #1

    Do All Modules Get Loaded??

    Consider the following statements:

    "When a workbook is opened, ALL of its modules are also loaded. Modules are NOT loaded on an "as needed" basis."

    Can anyone say with certainty that those two sentences are correct?

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    A standard module is loaded when the workbook is opened. This is when any global variables, constants, etc are initialized.
    A class module (which includes userforms) is loaded when its instanced or "as needed"
    K :-)

  3. #3
    When you say "a standard module" is loaded, I shall assume that means "ALL standard modules", which would have been my guess. I was just hoping it was otherwise. (Sigh) But thanks a load Killian. It sounds like you know what you're talking about, and I'm sure you do.

Posting Permissions

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