ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform Control Enter Event (https://www.excelbanter.com/excel-programming/406354-re-userform-control-enter-event.html)

Dave D-C[_3_]

Userform Control Enter Event
 
From the {XL97) help:

Enter occurs before a control actually receives the focus from a
control on the same form. Exit occurs immediately before a control
loses the focus to another control on the same form.


Remarks


The Enter and Exit events are similar to the GotFocus and LostFocus
events in Visual Basic. Unlike GotFocus and LostFocus, the Enter and
Exit events don't occur when a form receives or loses the focus.


Do you find it works this way?

donbowyer wrote:
Excel 2003 / Win XP
If I understand correctly, on a UserForm, the Clic event is triggered by
clicking any control and the MouseMove event is triggered by moving the mouse
over any control.
I would like to know what triggers the Enter event?



donbowyer

Userform Control Enter Event
 
Hi Dave
Thanks for your reply which has allowed me to prove to myself that if a
control if given the focus, then the Enter Event for that control will be
triggered.
However I dont see the value of this, if the Enter Event has to be
triggered by another event.
Perhaps it would allow some action to be arranged after the Enter Event and
before the Set Focus Event, but I cant see why this might be beneficial.

--
donwb


"Dave D-C" wrote:

From the {XL97) help:

Enter occurs before a control actually receives the focus from a
control on the same form. Exit occurs immediately before a control
loses the focus to another control on the same form.


Remarks


The Enter and Exit events are similar to the GotFocus and LostFocus
events in Visual Basic. Unlike GotFocus and LostFocus, the Enter and
Exit events don't occur when a form receives or loses the focus.


Do you find it works this way?

donbowyer wrote:
Excel 2003 / Win XP
If I understand correctly, on a UserForm, the Clic event is triggered by
clicking any control and the MouseMove event is triggered by moving the mouse
over any control.
I would like to know what triggers the Enter event?





All times are GMT +1. The time now is 10:24 AM.

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