+ Reply to Thread
Results 1 to 5 of 5

Condiftional Formatting/Formula for Font Color Change when Comment Appears

  1. #1
    Registered User
    Join Date
    07-21-2017
    Location
    Charleston, sc
    MS-Off Ver
    2016
    Posts
    5

    Condiftional Formatting/Formula for Font Color Change when Comment Appears

    Good morning, I'm trying to figure out a formula or some sort of conditional formatting to change my font color HOT PINK when there is a comment added to that cell. And, when the comment is removed the font turns back to original color (black).

    I originally used the VBA formula below, which changed the font to hot pink since there was a comment in that cell. But, when I went to delete the comment, the font stayed HOT PINK and didn't change back to original color.
    Please Login or Register  to view this content.
    Thank you!!
    Last edited by FDibbins; 07-23-2017 at 01:55 AM. Reason: code tags added

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Condiftional Formatting/Formula for Font Color Change when Comment Appears

    Your code is good it just needs three additional lines.

    However:-


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Condiftional Formatting/Formula for Font Color Change when Comment Appears

    jnjohnson Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    [(I have added them for you - this time )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Condiftional Formatting/Formula for Font Color Change when Comment Appears

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-21-2017
    Location
    Charleston, sc
    MS-Off Ver
    2016
    Posts
    5

    Re: Condiftional Formatting/Formula for Font Color Change when Comment Appears

    Thank you!! In trying this new code, the interior of the cell turns red. I'm wanting just the font to turn magenta (http://dmcritchie.mvps.org/excel/colors.htm) and the interior of the cell with No Fill. I ended up changing the With Rng.Interior to read With Rng.Font, but that did not work correctly.

    Thanks again for your help, much appreciated!!

+ 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. Formula to change font color
    By logan_fernandes in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-05-2013, 11:58 AM
  2. [SOLVED] Conditional Formatting - change font color in B25 if a separate box B23 says N/A
    By H57 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2013, 04:49 AM
  3. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  4. Change font color based on font color of another cell
    By Ibyers in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2012, 09:36 AM
  5. Replies: 6
    Last Post: 03-20-2012, 12:08 AM
  6. Comment box font color
    By dreicer_Jarr in forum Excel General
    Replies: 1
    Last Post: 01-09-2010, 01:12 AM
  7. Replies: 41
    Last Post: 04-10-2009, 08:50 AM

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