VBA - textbox group event on tab?

ildenizen

New Member
Joined
Dec 19, 2007
Messages
9
I have a userform with a grid of textbox entries (these are gouped and am using a class so I can trigger an event for any of them).
Each row has a label, each column has a label as well.
The grid is fairly large, and often as I am selecting a textbox to enter data, I want to quickly "see" the row/column labels corresponding to the textbox, to be sure I am not entering information in the incorrect row/column by mistake.

The desired behavior is to change the row and column labels (highlight, change backgound, etc) when I have selected a textbox.
I can get to the textbox either by mouse clicking, or by tabbing into it.

I can use the mousedown event to capture the event when I click on any textbox, where I can then detemine the textbox and make the row/column label format chantes. So far so good.
However, I have not been able to find an event or trigger that would occur when I have tabbed into the textbox and before I have made any text changes.

Any ideas if this is possibe?
Thanks in advance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,548
Messages
6,179,453
Members
452,915
Latest member
hannnahheileen

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
Back
Top