ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Does Alt-Enter insert a non-printing character in a cell string? (https://www.excelbanter.com/excel-programming/323877-does-alt-enter-insert-non-printing-character-cell-string.html)

Henry Stock

Does Alt-Enter insert a non-printing character in a cell string?
 
You can force a carriage return linfeed into an Excel cell to cause the
visible text to wrap by using the key combination Alt-Enter.

But does doing that actually insert something into the text string of that
cell?

Would there be an invisible chr(010) + chr(013) in the text string?

--
Henry Stock, Network Administrator
onProject.com
3 Wing Drive
Cedar Knolls, NJ 07927-1006



Tom Ogilvy

Does Alt-Enter insert a non-printing character in a cell string?
 
an invisible char(10).

You can check it out be using the LEN function.

--
Regards,
Tom Ogilvy

"Henry Stock" wrote in message
...
You can force a carriage return linfeed into an Excel cell to cause the
visible text to wrap by using the key combination Alt-Enter.

But does doing that actually insert something into the text string of that
cell?

Would there be an invisible chr(010) + chr(013) in the text string?

--
Henry Stock, Network Administrator
onProject.com
3 Wing Drive
Cedar Knolls, NJ 07927-1006





Henry Stock

Does Alt-Enter insert a non-printing character in a cell string?
 
Thanks Tom. I appreciate the help.

"Tom Ogilvy" wrote in message
...
an invisible char(10).

You can check it out be using the LEN function.

--
Regards,
Tom Ogilvy

"Henry Stock" wrote in message
...
You can force a carriage return linfeed into an Excel cell to cause the
visible text to wrap by using the key combination Alt-Enter.

But does doing that actually insert something into the text string of

that
cell?

Would there be an invisible chr(010) + chr(013) in the text string?

--
Henry Stock, Network Administrator
onProject.com
3 Wing Drive
Cedar Knolls, NJ 07927-1006







Steve[_74_]

Does Alt-Enter insert a non-printing character in a cell string?
 
Check further with some VBA:

Sub checkASC()
Dim i
For i = 1 To Len(Selection)
MsgBox Mid(Selection, i, 1) & " is ASC code " & Asc(Mid(Selection, i,
1))
Next i

End Sub



"Tom Ogilvy" wrote in message
...
an invisible char(10).

You can check it out be using the LEN function.

--
Regards,
Tom Ogilvy

"Henry Stock" wrote in message
...
You can force a carriage return linfeed into an Excel cell to cause the
visible text to wrap by using the key combination Alt-Enter.

But does doing that actually insert something into the text string of
that
cell?

Would there be an invisible chr(010) + chr(013) in the text string?

--
Henry Stock, Network Administrator
onProject.com
3 Wing Drive
Cedar Knolls, NJ 07927-1006








All times are GMT +1. The time now is 11:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com