+ Reply to Thread
Results 1 to 4 of 4

How to set colour of a special character

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    HK
    Posts
    12

    How to set colour of a special character

    I have a VBA formula (in italic) below:

    Please Login or Register  to view this content.
    What I want to show this when I display this symbol in cells is a red heart symbol but A in normal black colour. How can this be achieved?
    Last edited by one8421; 08-20-2010 at 10:48 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to set colour of a special character

    Like so:
    Please Login or Register  to view this content.

    Please edit your post above and put [code] tags around the code, like I've shown here.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-08-2008
    Location
    HK
    Posts
    12

    Re: How to set colour of a special character

    Thanks for your quick reply. This can solve some of my problem. But I am actually looking at wherever I paste the value "HeartSymbol" anywhere in the spreadsheet, it will appears in red colour. It is doable?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to set colour of a special character

    I've shown you the syntax for changing the color of a single character in a text string. You have to name the cell, then starting position in the string and the number of characters you are formatting the color.

    You will need to adapt that technique to your other possible scenarios. The technique shown changes the first character to red.

+ 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