![]() |
textbox focus
On a userform (say, Form1), I have a command button Commandbutton1 for adding text to a list List1 on that form. On clicking the button, the following code is executed:
Form2.Textbox1.Text="" Form2.Textbox1.SetFocus Form2.Show where Form2 is a form which contains among others a command button Commandbutton2 whose Click event handler contains the code Form1.List1.Additem Textbox1.Text Form2.Hide Strangely, however, it is unpredictable whether Textbox1 will be ready for input upon clicking Commandbutton1. Mostly it will be the first time the button is clicked, but upon activating Form2 more times, the Textbox will usually have to be clicked before it is ready for input. That is not what I want. What am I missing here? |
textbox focus
Wait, it may have something to do with Userform library versions. I will investigate that first.
|
All times are GMT +1. The time now is 01:51 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com