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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top