Add Line Break

bonnepoutine

New Member
Joined
Nov 24, 2010
Messages
15
Hi guys,

I'm creating a template in excel to automate an e-mail that has to be sent out to different customers. I'm pretty much just using the ''&'' function to add individual information to generic text. What I would like to do is have it start off like this:

''Dear Mr. Brown,

Please find document 123 enclosed in.....bla bla.''

How can I insert a line break in my formula so that it can be copy/pasted into an e-mail in the same format ?

Thanks in advance !
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
line break is Chr(13) in vba

eg "Dear blah," & chr(13) & "hello"
 
Upvote 0
Hi

If diddi's solution doesn't work, try these ones (the most usual ones)

"Dear blah," & vbLf & "hello"

or

"Dear blah," & vbNewLine & "hello"
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,834
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top