The arglist argument has the following syntax and parts: Any group of statements to be executed within the Sub procedure. ![]() Multiple variables are separated by commas. List of variables representing arguments that are passed to the Sub procedure when it is called. Name of the Sub follows standard variable naming conventions. The Static attribute doesn't affect variables that are declared outside the Sub, even if they are used in the procedure. Indicates that the Sub procedure's local variables are preserved between calls. Indicates that the Sub procedure is visible throughout the project, but not visible to a controller of an instance of an object. Indicates that the Sub procedure is accessible only to other procedures in the module where it is declared. ![]() If used in a module that contains an Option Private statement, the procedure is not available outside the project. Indicates that the Sub procedure is accessible to all other procedures in all modules. The Sub statement syntax has these parts: Part Declares the name, arguments, and code that form the body of a Sub procedure.
0 Comments
Leave a Reply. |