Hello!,
Is there a way to check the status of focus in a userform control?
some thing like :
if Textbox1.focus = true or if textbox1.setfocus = true ???
Thanks
Hello!,
Is there a way to check the status of focus in a userform control?
some thing like :
if Textbox1.focus = true or if textbox1.setfocus = true ???
Thanks
I think you have to find if the ActiveControl is the one you're interested
in.
Private Sub UserForm_Click()
Debug.Print ActiveControl.Name
End Sub
--
Jim
"Soniya" <Melepoil@gmail.com> wrote in message
news:1140010660.358132.132750@z14g2000cwz.googlegroups.com...
| Hello!,
|
| Is there a way to check the status of focus in a userform control?
|
| some thing like :
|
| if Textbox1.focus = true or if textbox1.setfocus = true ???
|
| Thanks
|
Thanks for your reply.
I got the point. Still my code does'nt work !!
What i am trying to do is:
I have two TextBoxes in my UserForm.
by cliking a SpinButton I want to increase and decrease the font size
based on which TextBox has the current focus.
If the user has clicked TextBox1 (the content is locked) SpinUp should
increase the font size by 1 and if the user has clicked on Textbox2
then spin up should increase the font size in TextBox 2
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks