hicksi
Board Regular
- Joined
- Mar 5, 2012
- Messages
- 220
- Office Version
- 365
- 2021
- Platform
- Windows
I have a UserForm that is dynamically constructed (depending on a not-predefined number of days), and while each dynamic textbox on that form has TabStop=False, there are a significant number of CommandButtons and frames that DO need tabstop enabled. I know that user-facing-controls (buttons, textbox, checkbox, etc) indicate when they are the in-focus control, but in the situation I am in at present, I need 15 clicks of the tab key to fully circumnavigate the controls that are on the form.
Nothing wrong with that, except there are only 4 controls that indicate their Focus state.
MY problem is that I need to identify the focused control (for debugging purposes) so that when the form is in the data-entry phase, they can all be disabled.
This is to increase user-speed. Ie, when set to the data-entry phase, the user needs to have 3 tab-enabled fields, an OK and a Cancel, so data is entered using ONLY keyboard - field1<tab>field2<tab>field3<tab><enter>, where the mini-form (a frame) stores the three values and jumps to the next day. If a check-error occurs, then the mini-form beeps and doesn't save. User decides which of the three fields is invalid and wants to <tab> to that.
YES, they're old-school, but when there's a need to key in lots of data, a mouse isn't user-friendly.
SO, right now, the 4th <tab> sets the Cancel button in focus, and 5th, 6th, 7th... I want to know what control is in focus so I can disable it during this process.
Any thoughts?
Nothing wrong with that, except there are only 4 controls that indicate their Focus state.
MY problem is that I need to identify the focused control (for debugging purposes) so that when the form is in the data-entry phase, they can all be disabled.
This is to increase user-speed. Ie, when set to the data-entry phase, the user needs to have 3 tab-enabled fields, an OK and a Cancel, so data is entered using ONLY keyboard - field1<tab>field2<tab>field3<tab><enter>, where the mini-form (a frame) stores the three values and jumps to the next day. If a check-error occurs, then the mini-form beeps and doesn't save. User decides which of the three fields is invalid and wants to <tab> to that.
YES, they're old-school, but when there's a need to key in lots of data, a mouse isn't user-friendly.
SO, right now, the 4th <tab> sets the Cancel button in focus, and 5th, 6th, 7th... I want to know what control is in focus so I can disable it during this process.
Any thoughts?