Set Global Variables for a Form

A global variable is available to any procedure in a form while the script is running. To set a global variable, assign the value to the variables before any procedures.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.