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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.