dsantist
New member
- Jan 31, 2007
- 1
Hi,
I'm new to the forums and i have (what i think to be) a fairly simple question...
In my code, i have a variable that represents the name of the UserForm that will be opened. How can I open the appropriate existing form based on this string representing the form name?
For instance, FormName = "UserForm_2"
Therefore, I want to open the existing form 'UserForm_2'.
I don't want to simply use UserForm_2.show because the value of the string (and therefore the form to be opened) will programmatically change depending on the circumstances.
Any ideas??
My first guess would be to use UserForm(FormName).Show , but this is not a built in function.
Thanx!
I'm new to the forums and i have (what i think to be) a fairly simple question...
In my code, i have a variable that represents the name of the UserForm that will be opened. How can I open the appropriate existing form based on this string representing the form name?
For instance, FormName = "UserForm_2"
Therefore, I want to open the existing form 'UserForm_2'.
I don't want to simply use UserForm_2.show because the value of the string (and therefore the form to be opened) will programmatically change depending on the circumstances.
Any ideas??
My first guess would be to use UserForm(FormName).Show , but this is not a built in function.
Thanx!