Carriage Returns in a Cell - what character?

lord_yo

New Member
Joined
Oct 18, 2006
Messages
39

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
you can find out the character # with the a combination of the Code and Mid functions.

Say you know the sentence contains a soft return at the 15th character, you would use

=CODE(MID(A1,15,1))

that will tell you the Character number for the soft return..

But I think it's 10
 
Upvote 0
I can't remember either, but if it's not 10 try 13 as well....Chr(13) is a line break in a message box (I think...or 10...one of them, lol)
 
Upvote 0
10 is Line Feed (which is what you want), 13 is carriage return. In VBA (if you are automating the replace), you can use vbLf
 
Upvote 0

Forum statistics

Threads
1,223,631
Messages
6,173,464
Members
452,516
Latest member
archcalx

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