Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
could someone tell me what the type is of a textbox you put on a userform with the vba toolbox? I want to create such a textbox at runtime via a class module. I thought it was from type MSForms.TextBox, but this type hasn't got the event handler LostFocus, which I really need for my application and which all the regular textboxes on a userform do have. Could someone help me please? Thx, Lieven |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
It is indeed an msForms.Textbox. But not all events you have in the userform's code module itself are available in a class module. Regards, Jan Karel Pieterse Excel TA/MVP -----Original Message----- Hello, could someone tell me what the type is of a textbox you put on a userform with the vba toolbox? I want to create such a textbox at runtime via a class module. I thought it was from type MSForms.TextBox, but this type hasn't got the event handler LostFocus, which I really need for my application and which all the regular textboxes on a userform do have. Could someone help me please? Thx, Lieven . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just adding to Jan's good advice:
Lostfocus is not an event any textboxes have on a userform. It is an event provided by the OLEObject on a worksheet and is only available to msforms textboxes when they are placed on a worksheet. Events provided by the containers OLEObject and Control, are not available in With Events/class modules in my experience. -- Regards, Tom Ogilvy "Jan Karel Pieterse" wrote in message ... Hi, It is indeed an msForms.Textbox. But not all events you have in the userform's code module itself are available in a class module. Regards, Jan Karel Pieterse Excel TA/MVP -----Original Message----- Hello, could someone tell me what the type is of a textbox you put on a userform with the vba toolbox? I want to create such a textbox at runtime via a class module. I thought it was from type MSForms.TextBox, but this type hasn't got the event handler LostFocus, which I really need for my application and which all the regular textboxes on a userform do have. Could someone help me please? Thx, Lieven . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
userform textbox | Excel Worksheet Functions | |||
How to add textbox/buttons to an UserForm | Excel Programming | |||
hide a textbox on a userform? | Excel Programming | |||
UserForm TextBox to ActiveSheet TextBox over 256 characters | Excel Programming | |||
Populating Textbox in UserForm | Excel Programming |