Submitted by viking on 2023/04/15 04:07

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

 

 

Comments

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

How do I ?