Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-28-2016, 09:06 PM
littlepeaks littlepeaks is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jan 2012
Location: Colorado Springs, CO
Posts: 7
littlepeaks is on a distinguished road
Default Can't go to next line in text box

I have a text box in userform1 for a Word document. The behavior is if you double click on the text box, it copies the name and address into the text box from another source. This works OK.



I want people to also be able to type the name and address in the text box manually. But when you finish typing the name and hit carriage return, the next text box gets focus for text input. I have textbox multiline property set to true.

I have another similar macro where a similar name and address text box works properly -- so probably something dumb I've overlooked.

Please help.
Reply With Quote
  #2  
Old 07-29-2016, 10:19 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Word MVP 2003-2009
 
Join Date: May 2010
Location: Marble, NC
Posts: 797
gmaxey will become famous soon enough
Default

Hit Shift+Enter or change the EnterKey Behavior property from false to true
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 07-29-2016, 10:49 AM
littlepeaks littlepeaks is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jan 2012
Location: Colorado Springs, CO
Posts: 7
littlepeaks is on a distinguished road
Default

Thanks gmaxey -- both solutions work.
Don't see how to mark the thread solved.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock line so text does not move to next line saundrals Word 2 06-19-2014 03:59 PM
I canīt see images In line with text magotas Word 2 03-01-2012 01:40 AM
Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM
One line of text - two formats? judicial85 Word 4 02-18-2011 04:24 AM
Line breaks at each line in Web text ahazelwood Word 5 01-06-2011 02:37 PM


All times are GMT -7. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft