Home » excel » how to add paragraphs or break in excel vba

how to add paragraphs or break in excel vba

Posted by: admin May 14, 2020 Leave a comment

Questions:
.Introduction = "Hello, this is line 1. This is line 2. This is line 3."

Can anybody suggest me a method to break this up into paragraphs.
I have tried to using br but am unable to split the sentences up.

How to&Answers:

Use vbNewline or vbCrLf.

Your code should be like:

.Introduction = "Hello, this is line 1." & vbNewline & "This is line 2." & vbNewline & "This is line 3."