M
Michel S.
hello !
I have a userform for which I want to programmatically set/change
properties in a function before displaying it.
Instead of hardcoding the form's name at many places in the function,
I'd like to assign it to a form object and use this object in my
function.
How can I do it ?
I tried :
Dim frm AS MSForms.UserForm
Set frm = frmActualFormName
Using this syntax, I can access and edit form's controls, but when the
program reaches :
frm.Show
I get an error 438 : Object doesn't support this property or method.
Why ?
Thanks.
I have a userform for which I want to programmatically set/change
properties in a function before displaying it.
Instead of hardcoding the form's name at many places in the function,
I'd like to assign it to a form object and use this object in my
function.
How can I do it ?
I tried :
Dim frm AS MSForms.UserForm
Set frm = frmActualFormName
Using this syntax, I can access and edit form's controls, but when the
program reaches :
frm.Show
I get an error 438 : Object doesn't support this property or method.
Why ?
Thanks.