+ Reply to Thread
Results 1 to 7 of 7

RibbonX XML: How can I put in a carriage return or new line within " " marks

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    RibbonX XML: How can I put in a carriage return or new line within " " marks

    In a screentip I want to separate two paragraphs of text by a empty line.
    To do that I need to add a new line or a couple CRs. How do I do that?

    Example:
    screentip="Hi, how are you doing. Thank you I am fine."

    The above line gives me:
    Hi, how are you doing. Thank you I am fine.

    What I want is:
    Hi, how are you doing.

    Thank you I am fine.
    Last edited by dschmitt; 07-11-2010 at 09:10 PM.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    I don't use XL2007, but this should work.
    screentip = "Hi, how are you doing?" & char(13) & char(13) & "Thank you, I am find."
    char(13) = carriage return
    char(10) = line feed (if 13 doesn't work by itself then put both in)
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    I tried that. It does not work with Excel 2007.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    Where are you using the screen tip- actually in the Ribbon?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    in a customButton

    The below is working
    screentip = "Hi, how are you doing? Thank you, I am find."

    The below is not working. Not working means the customUI is not showing up in the Excel Ribbon.
    screentip = "Hi, how are you doing?" & char(13) & "Thank you, I am find."

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,459

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    Screentips, like normal tooltips, do not handle multiple lines.

    The Supertip does though. In order to force a new line use

    Hi, how are you doing? &# 13;Thank you, I am find.
    Due to the board reading and actioning the syntax you will need to remove the space between # and 13;
    Cheers
    Andy
    www.andypope.info

  7. #7
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: RibbonX XML: How can I put in a carriage return or new line within " " marks

    Andy, you are correct.

+ 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