Multi-lined text boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
Apologies if this seems like a silly question but it has been requested of me!

I have a userform with a mult-lined text box, when using the userform for
text entry to move down a line the user has to use the following key
combinations:

CTRL and ENTER

Is there a way of getting this to just be ENTER or RETURN without the need
for CTRL???
 
In the VBA designer, select the text box, go to the Properties pane, and set
the EnterKeyBehavior property to True. Alternatively, in the
UserForm_Initialize procedure, include the line

TextBox1.EnterKeyBehavior = True

(Substitute the actual name of the text box for TextBox1.) To understand the
behavior, read the topic about EnterKeyBehavior in the VBA help.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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

Back
Top