Detecting a press of tab button or a change of textbox. (with VBA)

Status
Not open for further replies.

Fire_Chief

Well-known Member
Joined
Jun 21, 2003
Messages
633
I have a user form ("Participants_Info" is the name of the user form). When this form is brought up I want to detect when the user either presses the Tab button
or uses the mouse to change the cursor to a different box. There are 2 comboboxes and 3 textboxes. The second name is if there are two participants.
I want to be sure there is something in the box when they move to the next one. I know there is code to do this but I can't figure it out.
I think I have tried all of the choices available but can't get it to detect both.

I have posted before with no answers.
View attachment 26140
Thank You
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,122,471
Messages
5,596,350
Members
414,060
Latest member
hermanseck

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top