Consulting

Results 1 to 3 of 3

Thread: Inserting Special Character Harvey Balls into PPT

  1. #1
    VBAX Contributor
    Joined
    Dec 2018
    Location
    South London
    Posts
    115
    Location

    Inserting Special Character Harvey Balls into PPT

    Hi all

    I've made various attempts to drop in a special character at the cursor using VBA in PPT (Office 2016) - however, the 3 quarter Harvey Ball in Segoe UI Symbol font is "25D5" and in Unicode (Hex). Other special characters work fine, if they're Decimal not Unicode (hex); a Hex to Decimal converter for 25D5 is 9685 but then this special character isn't found. I've spent hours trying to find out how, nothing.

    Sub HarveyBall3Q()
    On Error Resume Next
    With ActiveWindow.Selection.TextRange.Characters
    .Text = Chr$(25D5)
    .Font.Name = "Segoe UI Symbol"
    End With
    End Sub
    Any way of using the Segoe UI Symbol's Harvey Ball character 25D5 (Unicode, Hex)?

    Thank you.

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

    Sub HarveyBall3Q()
        With ActiveWindow.Selection.TextRange.Characters
            .Text = ChrW(9685)
            .Font.Name = "Segoe UI Symbol"
        End With
    End Sub
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Contributor
    Joined
    Dec 2018
    Location
    South London
    Posts
    115
    Location
    Thank you

Tags for this Thread

Posting Permissions

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