Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Line command when writing to text box

Status
Not open for further replies.

matpj

Technical User
Mar 28, 2001
687
GB
When I am trying to get some code to write some standard information to a text box, how do I tell it to go to a new line, rather than carry on until the edge of the page before it wraps?

 
jjames,

this didn't work. here is the line that writes the contents of two combo boxes to the body text of an email message:


sAddedtext = sAddedtext & "&Body=" & Combo33 & Chr$(13) & Combo42


when I put the 'Chr$(13)' part in it, nothing happens at all. It does exactly the same as without this command.
any ideas?
 
I think you need to use both Chr$(13) & Chr$(10)

use vbcrlf or vbnewline
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top