BrighterLater
Board Regular
- Joined
- Sep 16, 2005
- Messages
- 114
I'd be grateful for help on simplifying the use of certain of my VBA dialogues.
In windows' dialogue boxes, having entered text into a field, hitting Return not only exits the field but may also behave as if one had hit the OK button.
In the simple way I code VBA forms this takes two key strokes. The first Return exits the field and then, through tab order, focuses the OK button. It takes a second Return to fire the OK button. Is there a conventional way to make this behave more like a windows dialogue form. Presumably you need to recognise whether you exited the field with a Return or some other keystroke like an arrow or tab.
Thank you
In windows' dialogue boxes, having entered text into a field, hitting Return not only exits the field but may also behave as if one had hit the OK button.
In the simple way I code VBA forms this takes two key strokes. The first Return exits the field and then, through tab order, focuses the OK button. It takes a second Return to fire the OK button. Is there a conventional way to make this behave more like a windows dialogue form. Presumably you need to recognise whether you exited the field with a Return or some other keystroke like an arrow or tab.
Thank you