E
Enda
Hi,
Could someone please offer some advice on the following? I am trying
to keep my UserForm code separate from the UserForm. I want to pass a
reference to the UserForm to a Sub in another generic module for
manipulating UserForms. I have used the following code in a Sub of the
UserForm.
Private Sub UserForm_Activate()
Dim form As UserForm
Set form = Me
Call modForm.Activate(form)
End Sub
After setting form=Me, I can no longer properties such as
form.Caption. How can I achieve a correct reference to a UserForm and
pass this to other modules?
Regards,
Enda Ridge
Could someone please offer some advice on the following? I am trying
to keep my UserForm code separate from the UserForm. I want to pass a
reference to the UserForm to a Sub in another generic module for
manipulating UserForms. I have used the following code in a Sub of the
UserForm.
Private Sub UserForm_Activate()
Dim form As UserForm
Set form = Me
Call modForm.Activate(form)
End Sub
After setting form=Me, I can no longer properties such as
form.Caption. How can I achieve a correct reference to a UserForm and
pass this to other modules?
Regards,
Enda Ridge