+ Reply to Thread
Results 1 to 5 of 5

new line within cell text

Hybrid View

  1. #1
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    new line within cell text

    I am unsure which category to post this in, and so am cross posting this question under Excel Programming also.

    When I want to force a new line within a cell, I can do it as I am typing by hitting alt-Enter. No problem.

    However, if I want to do it programmatically, I would expect CHAR(10) to cause a line break. If not that then CHAR(13)&CHAR(10). However, no combination of these characters seems to enforce the line break; they just produce a continuous line of output with little rectangles where the unprintable characters appear.

    My question: how do I enforce a new line programmatically within the text of a cell?
    Last edited by ffffloyd; 07-13-2011 at 08:45 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: new line within cell text

    ffffloyd,

    See several answers in your other post:
    http://www.excelforum.com/excel-prog...cell-text.html
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: new line within cell text

    Also please Note forum rules

    5. Don't duplicate posts. We have seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    Re: new line within cell text

    The answers in the other post aren't what I was hoping for. As I said, I was unsure which category to post the question in.

  5. #5
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    Re: new line within cell text

    Solved finally by shg in the cross-post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1