I am very new to VBA and am working on my first Word template that has a few different userforms.
How do you make a variable defined in a userform be able to be referenced in the code of another userform?
Example:
First UserForm allows the user to select Option1 or Option2. If they select Option2 Then Option1 is set as False and Option2 as True when they hit the Finish button on the first UserForm.
They then can open a new UserForm. This new UserForm needs to have If Then statement checking the value of Option1 and Option2 that was defined in the first UserForm.
This is probably very basic stuff but I can't find a reference to it in my new VBA book.
Thanks in advance for any help or a point in the right direction on where to find the answer.
How do you make a variable defined in a userform be able to be referenced in the code of another userform?
Example:
First UserForm allows the user to select Option1 or Option2. If they select Option2 Then Option1 is set as False and Option2 as True when they hit the Finish button on the first UserForm.
They then can open a new UserForm. This new UserForm needs to have If Then statement checking the value of Option1 and Option2 that was defined in the first UserForm.
This is probably very basic stuff but I can't find a reference to it in my new VBA book.
Thanks in advance for any help or a point in the right direction on where to find the answer.