+ Reply to Thread
Results 1 to 3 of 3

If Cells(ActiveCell.Row, “D”).Font.Color = vbRed Then

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    If Cells(ActiveCell.Row, “D”).Font.Color = vbRed Then

    Looking to make this code work but it doesn’t do anything.
    I have tried to mix it up with a code I previously had:

    Please Login or Register  to view this content.
    I have a conditional formatting in D5 to D20 making the Font Text Red when Cell = Today. I want that when the Font Color of column D turns Red to make the ActiveCell.Row, “A” also make the Font.Color turn RED... vbRed.

    I tried the following but not working:

    Please Login or Register  to view this content.
    Is this possible?

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: If Cells(ActiveCell.Row, “D”).Font.Color = vbRed Then

    Hi, Excelnoub,

    what you evaluate in the code is the normal font color while the color of the CF will not be shown (should be listed as xlAutomatic if I remember correctly).

    Maybe try
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: If Cells(ActiveCell.Row, “D”).Font.Color = vbRed Then

    Nicely done it is perfect

    Thank you HaHoBe

+ 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. Replies: 2
    Last Post: 02-04-2013, 02:00 PM
  2. Alternate color of font in two cells
    By ballan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 09:36 PM
  3. 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
  4. Sum Cells which have font color red
    By modest_16081982 in forum Excel General
    Replies: 3
    Last Post: 11-06-2008, 05:18 PM
  5. sort cells by font color
    By baz0912 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2008, 02:09 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