+ Reply to Thread
Results 1 to 6 of 6

VB code to change font color of cell with criteria

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB code to change font color of cell with criteria

    Hello

    I have numbers in column A, B and C.
    Need VB Code to go thru each row of data until the last row.
    If data in column A,B and C are all zero then chnage font colour to white ( so that it becomes invisible)

    Please let me know if you have any questions.
    Thanks.

    Riz

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

    Re: VB code to change font color of cell with criteria

    Why not use conditional Formatting.
    New Rule > Use a formula > =AND($A1=0,$B1=0,$C1=0) > Select format > OK
    The$A1 etc needs to reflect the first row in the applies to range

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VB code to change font color of cell with criteria

    @ Fluff13,

    Exactly my thought as well!

    Riz, please check the attached sample Workbook.

    Regards.
    Attached Files Attached Files
    Last edited by Winon; 08-23-2018 at 10:11 AM. Reason: Spelling!
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB code to change font color of cell with criteria

    Hello Guys:

    Great Help, Thanks

    Riz

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

    Re: VB code to change font color of cell with criteria

    Glad we could help & thanks for the feedback

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VB code to change font color of cell with criteria

    Hi Riz,

    Thank you for the feedback and the Rep tap. You are welcome, glad we could help.

    Regards.

+ 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. [SOLVED] Change the font and background color of the VBA code screen
    By niko79542 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2022, 09:54 PM
  2. [SOLVED] VB Code to change Font color
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 07:10 PM
  3. Change Row Font Color based on criteria in named range
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2013, 07:44 PM
  4. Mouse rolls over to cell will change the tab color, font color and tp bold type
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-20-2013, 10:36 AM
  5. 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
  6. Best way to change color of font in code?
    By bobbby1949 in forum Excel General
    Replies: 5
    Last Post: 08-27-2011, 04:50 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