Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3760260
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:26:40+00:00 2026-05-19T10:26:40+00:00

I want to print a 4 to 5 line sentence in excel using VBA

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:26:41+00:00Added an answer on May 19, 2026 at 10:26 am

    It isn’t clear what problem you are having, but here’s a few things to note about using line breaks in excel:

    • Line breaks that have been pasted into a cell will sometimes appear as a hollow rectangle if ‘Wrap Text‘ is not enabled for the cell. You can find this function under the Text Alignment menu.
    • If a line break is inserted into a cell and the text is wrapping correctly, only the first line will appear unless you increase the row height to make the text visible. The easiest way to do this is to double click the bottom divider of the row header.
    • When printing excel documents, only the visible area of cells will be printed. The document is a ‘what you see is what you get’ in terms of printing, so if rows or columns aren’t sized to display the entire contents of cells, then that content will not appear when the document is printed.
    • In VBA, you add a line break to a string using the constant 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using System.Drawing.Printing, I want to print a set of lines on print document. But
I want to print modulus operator as it is over the command line: E.g
I want to search each line for the word FAILED , then print the
I want to print an integer number in binary mode using following function: #include
I want to print next line of matching word with sed. I tried this
I need to know the command that I can print a sentence like the
How would you make print only print one line each time like for i
I want to cut the characters n-N of a line, but ONLY if the
I Want Print DataBase Schema in Microsoft Sql Server Compact Edition. Maybe Exist Some
i have a list of posts. i want print some words of post content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.