Hello,
I have a UserForm with lots of textBoxes. At the bottom of the form is a clickable "Enter Data" button. I would like to be able to run the "Enter Data" sub by pressing the enter key on the keyboard in any of the textboxes.
I think it would work (??) by creating a sub for each textbox containing:
But I'm not at all sure how to set up code for this. Any help would be greatly appreciated.
I have a UserForm with lots of textBoxes. At the bottom of the form is a clickable "Enter Data" button. I would like to be able to run the "Enter Data" sub by pressing the enter key on the keyboard in any of the textboxes.
I think it would work (??) by creating a sub for each textbox containing:
Code:
On Enter button
Call Enter_Data
But I'm not at all sure how to set up code for this. Any help would be greatly appreciated.