electricpete
Technical User
Newbie question.
I have created my first userform. It has several items for the user to enter and at the bottom a commandbutton labeled "ok" which the user is supposed to press when finished entering the data. The commandbutton saves the data and unloads the userform
Is there a way that the commandbutton can be excecuted when the user presses "enter" ? (so the user doesn't have to mouse-click on the command button).
I see there is provision for a single letter to be used with alt (accelerator), but I would like this "ok" commandbutton to be triggered with the enter key instead.
Thanks in advance.
I have created my first userform. It has several items for the user to enter and at the bottom a commandbutton labeled "ok" which the user is supposed to press when finished entering the data. The commandbutton saves the data and unloads the userform
Is there a way that the commandbutton can be excecuted when the user presses "enter" ? (so the user doesn't have to mouse-click on the command button).
I see there is provision for a single letter to be used with alt (accelerator), but I would like this "ok" commandbutton to be triggered with the enter key instead.
Thanks in advance.