Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hiya.
The Caption property seems to not refer to my windowtitle if I cast my userform to the UserForm interface. Is that clear? When I go function example(smork as UserForm) dim bulb as frmMine smork.caption = "Floom" ' writes 'Floom' in Title Bar set bulb = smork bulb.caption = "But, I'm on the form itself!" ' writes on the form body end function What's up with this? I'd like to use my function against different types of UserForms, but I'd need to be able to set the title bar. Help! Ion |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, that's backwards.
function example(smork as UserForm) dim bulb as frmMine smork.caption = "But, I'm on the form itself!" ' writes on the form body set bulb = smork bulb.caption = "Floom" ' writes 'Floom' in Title Bar end function ion wrote: Hiya. The Caption property seems to not refer to my windowtitle if I cast my userform to the UserForm interface. Is that clear? When I go function example(smork as UserForm) dim bulb as frmMine smork.caption = "Floom" ' writes 'Floom' in Title Bar set bulb = smork bulb.caption = "But, I'm on the form itself!" ' writes on the form body end function What's up with this? I'd like to use my function against different types of UserForms, but I'd need to be able to set the title bar. Help! Ion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform Caption | Excel Programming | |||
setting caption of field in table in db | Excel Programming | |||
Setting Caption for the RefEdit box? | Excel Programming | |||
setting the caption in a button control | Excel Programming | |||
UserForm Caption | Excel Programming |