+ Reply to Thread
Results 1 to 3 of 3

Displaying contents of a cell that contains a special symbol

  1. #1
    Registered User
    Join Date
    09-05-2009
    Location
    Phoenix, Arizona
    MS-Off Ver
    Office 365
    Posts
    7

    Displaying contents of a cell that contains a special symbol

    The following code enters the special symbol ( a check mark) correctly in the specified cell; however, line 2 results in a Question mark being displayed in the MsgBox. Can you help me understand why? And also how to correctly display the contents of a cell that contains a special symbol?

    Please Login or Register  to view this content.
    Thank you
    Last edited by JRMOURNING; 02-28-2019 at 02:38 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Displaying contents of a cell that contains a special symbol

    I don't think that the MsgBox can display special characters.
    You would need to crate a Userform to do that.

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Displaying contents of a cell that contains a special symbol

    Quote Originally Posted by JRMOURNING View Post
    The following code enters the special symbol ( a check mark) correctly in the specified cell; however, line 2 results in a Question mark being displayed in the MsgBox ....

    This is because; Visual Basic Editor does not support Unicode encoding, it uses the code page of your Windows system locale. Therefore, you see a question mark, instead of a check mark.

    The character code you are referring is 63 (decimal) and its corresponding character is a question mark in Visual Basic Editor's code page, which the MsgBox also uses.

    You can display ASCII characters in a range of 0 - 255 which you can see from the link below.

    https://www.ascii-code.com/
    Last edited by Haluk; 02-28-2019 at 05:24 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MS Excel Rupee Symbol Not Displaying as a different symbol
    By perpectuals in forum Excel General
    Replies: 1
    Last Post: 07-02-2015, 07:03 AM
  2. Macro to highlight a cell that has special charcters and symbol
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2014, 07:58 AM
  3. displaying part of a cell contents
    By erikwvb in forum Excel General
    Replies: 3
    Last Post: 07-07-2011, 12:49 PM
  4. checking cell contents and displaying a message
    By brownstone in forum Excel General
    Replies: 4
    Last Post: 05-24-2007, 05:54 PM
  5. [SOLVED] Displaying cell contents on one sheet
    By Peter J Watson in forum Excel General
    Replies: 3
    Last Post: 04-27-2006, 07:30 PM
  6. Displaying contents of cell on different spreadsheet
    By telewats in forum Excel General
    Replies: 1
    Last Post: 01-26-2006, 01:00 PM
  7. Displaying cell contents based on input?
    By Fleone in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-01-2005, 09:06 PM

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