UserForm: hit "Enter" on keyboard to activate button?

E

Ed from AZ

I've created a UserForm in which I enter data in three text boxes. I
then click the CommandButton that runs the code to perfrom the
calculations. I'd rather just hit "Enter" on the keyboard. What
property of the CommandButton to I use to do this?

Ed
 
R

Russ

Ed,
Set the .Default = True for the button you want. It should look highlighted
when you show the form.
 
Top