Using the ENTER key in a Form

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

Guest

Can I do something to allow me to use the enter key in a form so that there
can be logical breaks in responses?

Thank you

David
 
If you hold down Control <Ctrl> and press <Enter> at while doing so, you will
insert a line break into your text sequence. For example, this would work if
you wanted to force a line wrap in your button text.

If you are trying to insert a line break into a string, for example

msgbox "Hello World!"
(which prints "Hello World!")

you would use & vbCrLf
for example

msgbox "Hello " & vbCrLf & "World!"

which prints:
"Hello
World!"

Hope this helps,

-David
 
You can also set Enter Key Behavior in properties for more intuitive
behavior.

HTH
 

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