I am not able to create a line break in the Doc pane by code. (See here for example https://excelchamps.com/vba/new-line/)
To test, I created a rule:
AM: [ItemHTML]="Line1" & vbNewLine & "Line2"
However, after execution, the Doc pane shows a space instead of a line break:
Line1 Line2
I wanted it to show:
Line1
Line2
I tried all 3 versions:
vbNewLine
vbCrLf
vbLf
How do I ?
Comments
The Doc pane uses HTML tags…
The Doc pane uses HTML tags. try one of <br>, </p><p>, or </div>,<div>
The easy way is to enter some content in the Doc pane and look at the Code view for it
Thanks! I had originally…
Thanks!
I had originally tried:
AM: [ItemHTML]="Line1" & <br> & "Line2" but that didn't work.
It worked now when I used the <br> as a string instead:
AM: [ItemHTML]="Line1" & "<br>" & "Line2"