Reputation: 93
I want to print a 4 to 5 line sentence in excel using VBA .like if i print onle line sentence as " Delhi is the Capital of India", it is working. But same format don't work for multiline sentence.
Please help me out on this.
Upvotes: 0
Views: 794
Reputation: 27220
It isn't clear what problem you are having, but here's a few things to note about using line breaks in excel:
VBNewLine
. You add it by concatenation, so you would separate your two lines using Selection.Value = "First Line" + VBNewLine + "Second Line."Hope one of these solves your problem.
Upvotes: 2