RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
IF I add a user form, I can change default form name from UserForm1 to whatever I'd like; lets say I rename it to u1
Lets say I create a userform click event that states: MsgBox Me.Name
That will work and msgbox will return 'u1'
My problem is with a function that I created, where I have declared: Private Function Do_something(byval someform as msforms.userform)
I can address almost all properties for someform userform object with exception .name? Why is that? I would like to know which userform I'm dealing with when it runs through my function but am unable to get the .name property from someform object.
Lets say I create a userform click event that states: MsgBox Me.Name
That will work and msgbox will return 'u1'
My problem is with a function that I created, where I have declared: Private Function Do_something(byval someform as msforms.userform)
I can address almost all properties for someform userform object with exception .name? Why is that? I would like to know which userform I'm dealing with when it runs through my function but am unable to get the .name property from someform object.
Last edited: