Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message oups.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 | |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
reuest formula for auto update status & status date | Excel Worksheet Functions | |||
set focus | Excel Discussion (Misc queries) | |||
Need a msg box that displays time status or loading status | Excel Programming | |||
RTD Getting The Focus | Excel Programming | |||
focus | Excel Programming |