R
Richard Spaull
I tried posting the following to microsoft.public.vb.controls and was
instructed to try a VBA newsgroup. I tried
microsoft.public.word.vba.userforms but no joy. Can anyone advise as to the
best newsgroup for this sort of question and/or help with this particular
problem.
Using VB 6.3 within Word, I want to add a TextBox control to a UserForm at
run time from within a class module and then handle an AfterUpdate event (or
similar).
I've declared :-
Private WithEvents LocalTextBox As TextBox
and then added the control as follows :-
Public Sub AddToForm(Form As UserForm)
Set LocalTextBox = Form.Controls.Add("Forms.TextBox.1")
.....
I can then handle certain events (such as the Change event) but an
AfterUpdate event (or similar) is not available.
Where I am going wrong ?
instructed to try a VBA newsgroup. I tried
microsoft.public.word.vba.userforms but no joy. Can anyone advise as to the
best newsgroup for this sort of question and/or help with this particular
problem.
Using VB 6.3 within Word, I want to add a TextBox control to a UserForm at
run time from within a class module and then handle an AfterUpdate event (or
similar).
I've declared :-
Private WithEvents LocalTextBox As TextBox
and then added the control as follows :-
Public Sub AddToForm(Form As UserForm)
Set LocalTextBox = Form.Controls.Add("Forms.TextBox.1")
.....
I can then handle certain events (such as the Change event) but an
AfterUpdate event (or similar) is not available.
Where I am going wrong ?