Q about Unicode and the ChrW function in VBA
Results 1 to 4 of 4

Thread: Q about Unicode and the ChrW function in VBA
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Dec 2016
    Location
    Copenhagen, Denmark
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Q about Unicode and the ChrW function in VBA

    Hi ,

    I understand from the documentation that the ChrW function supports a value up to 65535. So this code works fine:

    Code:
    Range("C2") = ChrW(9000)
    And this one gives an error:

    Code:
    Range("C2") = ChrW(128247)
    So, how do I insert a Unicode number higher than the limit of the ChrW function - if possible?

    Kind regards
    Erik

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    25,491
    Post Thanks / Like
    Mentioned
    443 Post(s)
    Tagged
    45 Thread(s)

    Default Re: Q about Unicode and the ChrW function in VBA

    Try
    Code:
    Range("C2") = WorksheetFunction.Unichar(128247)
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    New Member
    Join Date
    Dec 2016
    Location
    Copenhagen, Denmark
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Q about Unicode and the ChrW function in VBA

    Quote Originally Posted by Fluff View Post
    Try
    Code:
    Range("C2") = WorksheetFunction.Unichar(128247)
    That worked! Thank you so much

  4. #4
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    25,491
    Post Thanks / Like
    Mentioned
    443 Post(s)
    Tagged
    45 Thread(s)

    Default Re: Q about Unicode and the ChrW function in VBA

    Glad to help & thanks for the feedback
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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