What Is Scope?
Scope refers to the range, reach, extent, or sphere of availability of a variable, constant, or procedure to other procedures. A variable, constant, or procedure can be declared public or private. If they are declared with Public scope, they are available to all procedures in all modules in all applications unless Option Private Module is in effect; in which case, they are available only within the project in which they reside. Anything that is declared with Private scope is available only within the module in which it was declared.
NOTE
Any variable declared as private in the declarations section of the module is available to any procedure in the module. If a variable is not in the declaration section (in other words, it is declared ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access