Hello
Why can't Chr(182) or "¶" function like chr(10) or Linefeed character ?
When anything typed in a particular cell or range of cells with ALT+Enter.
The text is broken with Lines in a cell and the same is represented in Textbox (whose Multiline Property value is set to False) is represented with "¶" after each text.
As I don’t have more space to in incorporate Textboxes with MultiLine and increase the height of textbox
Representation 1
Textbox3.Value displayed as with above code
Now in reverse manner ie From userform Textbox to worksheet cell
i type chr(182) after each text in Textbox1 and Textbox2 ie
When with above code
Sam¶ D’souza¶ 22 is Typed
I get in cell
Representation 2
and not same with LineFeed after each Text which is shown in Representation 1
This beautiful chr(182) or ¶ at least indicates where ALT+Enter has been pressed in a Cell inbetween the strings in a single Textbox whose multiline = False
Will it be possible to use chr(182) or “¶” instead of chr(10) LineFeed character in single Line Textbox so that cell in worksheet is displayed like representation 1
Your guidance and help shall be appreciated
Thanks
SamD
169
Why can't Chr(182) or "¶" function like chr(10) or Linefeed character ?
When anything typed in a particular cell or range of cells with ALT+Enter.
The text is broken with Lines in a cell and the same is represented in Textbox (whose Multiline Property value is set to False) is represented with "¶" after each text.
As I don’t have more space to in incorporate Textboxes with MultiLine and increase the height of textbox
Representation 1
J | K | |
1 | ||
2 | Sam D’souza 22 |
VBA Code:
StrText1= Textbox1.Text
StrText2=Textbox2.Text
With wks.Cells(2, 10)
.Value = "(" & strText1 & ")" & Chr(10) & StrText2
End With
TextBox3.Value = wks.Cells(2, 10).Value
Textbox3.Value displayed as with above code
Sam¶ D’souza¶ 22 |
Now in reverse manner ie From userform Textbox to worksheet cell
i type chr(182) after each text in Textbox1 and Textbox2 ie
VBA Code:
StrText1= Textbox1.Text
StrText2=Textbox2.Text
With wks.Cells(2, 10)
.Value = "(" & strText1 & ")" & Chr(182) & StrText2
End With
TextBox3.Value = wks.Cells(2, 10).Value
When with above code
Sam¶ D’souza¶ 22 is Typed
I get in cell
Representation 2
J | K | |
1 | ||
2 | Sam¶D’souza¶22 |
and not same with LineFeed after each Text which is shown in Representation 1
This beautiful chr(182) or ¶ at least indicates where ALT+Enter has been pressed in a Cell inbetween the strings in a single Textbox whose multiline = False
Will it be possible to use chr(182) or “¶” instead of chr(10) LineFeed character in single Line Textbox so that cell in worksheet is displayed like representation 1
Your guidance and help shall be appreciated
Thanks
SamD
169