Consulting

Results 1 to 4 of 4

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

  1. #1
    VBAX Regular
    Joined
    May 2010
    Posts
    65
    Location

    Solved: 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.

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    Try

    [vba]
    screentip="Hi, how are you doing.$$Thank you I am fine."
    [/vba]

    where each $ = ampersand pound 13 semicolon (no spaces)

    Actually putting the into the VBA tags got processed, and the code was not displayed



    Paul

    Last edited by Paul_Hossler; 07-09-2010 at 03:45 AM.

  3. #3
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,336
    Location
    In the RibbonX:

    Like Paul explains.

    Or via callback:

    Sub GetSuperTip(Control As IRibbonControl, ByRef supertip)
    supertip = "Super tip text line 1" & vbCr + vbCr & _
    "Super tip text line 2."
    End Sub
    Greg

    Visit my website: http://gregmaxey.com

  4. #4
    VBAX Regular
    Joined
    May 2010
    Posts
    65
    Location
    thanks Paul, thanks gmaxey.

    One addition:
    Screentips do not handle multiple lines. But Supertips do.

Posting Permissions

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