ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SetFocus testing (https://www.excelbanter.com/excel-programming/339410-setfocus-testing.html)

Tim[_44_]

SetFocus testing
 
I rely on .SetFocus to fire _Enter modules. This works well until the
control already has focus. Is there a way to test to see if a control
has focus in VBA?

Thanks,
-Tim


Charlie

SetFocus testing
 
TextBox1_GotFocus

"Tim" wrote:

I rely on .SetFocus to fire _Enter modules. This works well until the
control already has focus. Is there a way to test to see if a control
has focus in VBA?

Thanks,
-Tim



Tim[_44_]

SetFocus testing
 
I don't belive VBA can access the _GotFocus property, although I know
VB is able to. I am unable to reply to DevDex or read it in my mail
since I am restricted to Google Groups for my usenet facility. For
this reason, I must post to Google Groups.


Tim[_44_]

SetFocus testing
 
I don't belive VBA can access the _GotFocus property, although I know
VB is able to. I am unable to reply to DevDex or read it in my mail
since I am restricted to Google Groups for my usenet facility. For
this reason, I must post to Google Groups.



All times are GMT +1. The time now is 10:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com