What is the syntax to start a new line in text body?

Either of the three methods below will work:

Chr(10)
vbNewLine
vbCrLf
'example
MsgBox "Line 1" & vbNewLine & "Line 2" & vbCrLf & "Line 3" & Chr(10) & "Line 4"

Please note: for Textboxes in userform design, make sure to set MultiLine to true or else new lines will not work.

Advertisements