Hii everybody,
I want to add a new Textbox to my Userform runtime.If the user press teh
Enter Key on this runtime added Textbox then I want to add another Textbox
below the last want. And again on Enter Key I want to do that all again.
Adding a Textbox Runtime is OK.But I cannot controll the Keydown Event of
this runtime added Textbox.
Does anyone have any idea ?
Thanks in advance
Suad Candir
Jezebel - 19 Dec 2004 02:50 GMT
The added textboxes can be set to call a macro on exit ... that macro can
add the next textbox and set focus to it. How will your code know when to
stop adding more textboxes?
> Hii everybody,
> I want to add a new Textbox to my Userform runtime.If the user press teh
[quoted text clipped - 8 lines]
>
> Suad Candir
Suad Candir - 19 Dec 2004 13:01 GMT
Hi Jezebel,
I want to use Keydown_Event.If the user hits the Enter key the macro should
add another textbox.I can write the code for the textboxes at designtime, no
problem.But if I add a textbox at runtime,I cannot assign a macro to the
Keydown_event.That is my big problem.
Any idea ?
Suad Candir
> The added textboxes can be set to call a macro on exit ... that macro can
> add the next textbox and set focus to it. How will your code know when to
[quoted text clipped - 13 lines]
>>
>> Suad Candir
JBNewsGroup - 25 Dec 2004 04:57 GMT
Hi Suad,
I had a similar problem but I did know how many controls I was adding.
However, Peter Hewett explained it all. Take a look at the following to
read all the questions and answers:
http://www.wordmax.org/Adding_controls_at_Runtime_in_Userforms-5377192-4116-a.html
There may be some info to help you out.
Jerry Bodoff
> Hii everybody,
> I want to add a new Textbox to my Userform runtime.If the user press teh
[quoted text clipped - 8 lines]
>
> Suad Candir