Scope of Variables in Visual Basic for Applications
Click here to download now
Overview: This paper published by Microsoft explains that scope of a variable is determined at the time the variable is declared. In Microsoft Visual Basic for Applications, the three scopes available for variables are procedure, module, and public. The ?More Information? section of this paper describes each scope in detail. A local variable with procedure scope is recognized only within the procedure in which it is declared.