Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Multipage, controls-collection and events (XL2003, VBA)

Dear Group,

I have a Userform with a Multipage control, which is dynamically filled with
textboxes and comboboxes using Controls.Add like this:

Set aTextBox =
aUserForm.aMultiPage.Pages(strCurrentRegister).Con trols.Add("Forms.TextBox.1",
"txt" & strText, True)
Set aComboBox =
aUserForm.aMultiPage.Pages(strCurrentRegister).Con trols.Add("Forms.ComboBox.1",
"txt" & strText, True)

This is working fine, but what I miss is any way to assign eventhandlers. Is
there any way to do this?

If not, I could use existing controls, which I would create in a sufficient
quantity. Here I could prepare eventhandlers.
But going this way, how to assign the controls to the Page of Multipage
control?

I am working with Excel 2003 and VBA.

Thanks in advance,
Holger.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add New Events to Existing Collection of Events sarndt Excel Programming 6 April 2nd 10 10:21 PM
XL2003: Is it possible to sink a form's events in a class module ? Michel S. Excel Programming 4 February 20th 07 09:04 AM
Running procedures on events xl2003 ragtop73 Excel Programming 2 December 14th 05 02:25 PM
Help with Multipage Events kattes Excel Programming 3 June 6th 05 11:21 AM
Events for Controls in a Multipage Control George[_18_] Excel Programming 4 February 18th 04 05:56 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"