+ Reply to Thread
Results 1 to 11 of 11

Change fill of active cell to a more noticeable color using conditional formatting only

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Nebraska, USA
    MS-Off Ver
    Excel for Win 2016, Excel for Mac 2016
    Posts
    13

    Change fill of active cell to a more noticeable color using conditional formatting only

    Change the fill of the active cell to a more noticeable color using conditional formatting only, no VBA required.

    NOTE: Uploaded file with examples (=EG)

    The reference for these formulas is on the Tushar Mehta site. The examples in the tutorial weren't exactly what I wanted, so I created 2 sets of conditional formatting formulas by modifying the examples. I don't understand how these formulas work, so I used the 'try & try until it works' method. Do Not Ask Me How These Work!

    The 1st conditional formatting formula highlights only the active cell (when the active cell is in the area defined by the conditional format). Any fill color, font and font color can be used. My preference is for a stark black fill with a white font.

    2nd is a set of 4 conditional formatting formulas that highlight the row & column of the active cell, but NOT the active cell itself (when the active cell is in the area defined by the conditional format). This places the active cell in the cross-hairs of a highlighted column & a highlighted row. In a large data grid, the cross-hairs make it easier to find the active cell.

    All 4 formulas are required to highlight the row & column of the active cell. The 1st highlights the row to the left of the active cell; the 2nd, the row to the right; the 3rd, the column above; and the 4th, the column below. There are probably better ways to skin this cat, so if you figure that out, please post it.
    Last edited by IronHerder; 12-20-2016 at 11:22 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    I don't see any conditional formats in the example you provided.

  3. #3
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    can u pls show us how this works?
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  4. #4
    Registered User
    Join Date
    06-14-2012
    Location
    Nebraska, USA
    MS-Off Ver
    Excel for Win 2016, Excel for Mac 2016
    Posts
    13

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    added a 2nd upload with examples to original post

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    That is interesting, I do have to select the entire range first c8:Q14, then when I select a cell inside that range it changes color, same as E40:P54

  6. #6
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    Thanks for sharing!

  7. #7
    Registered User
    Join Date
    06-14-2012
    Location
    Nebraska, USA
    MS-Off Ver
    Excel for Win 2016, Excel for Mac 2016
    Posts
    13

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    On my mac, I don't need to select the entire range 1st, so I decided to check this out on one of the library's Windows computers.

    What I found is this: It is true that selecting the entire range 1st works, but so does selecting a cell in the range & then hitting F9 (refresh) or scrolling the active cell up out of the screen & then back down. This reluctance of the active cell to show the conditional formatting is frustrating, but could possibly be a virtue -- hit F9 only when you need to make the active cell obvious. This applies to the column & row highlighting, also.

    I did a search of the internet to see if I could get a refresh on the selection of a cell, but discovered that there are good reasons for making this a difficult-to-implement option. I still wonder if incorporating a volatile function might work like concatenating an IF statement with a nested TODAY() function.

    I also discovered that others had found, and have been using, the original reference for these conditional formats. So I get not much credit for this, maybe none at all if this is also an Excel Forum repeat.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    Ah I see, F9 does the trick. I put this code in the worksheet module
    Please Login or Register  to view this content.
    Then it works automatically, course then there are other issues.

  9. #9
    Registered User
    Join Date
    06-14-2012
    Location
    Nebraska, USA
    MS-Off Ver
    Excel for Win 2016, Excel for Mac 2016
    Posts
    13

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    Not to be too obtuse (just obtuse enough), but which other issues do you mean?

    And is there a non-VBA way to get a refresh on selection? VBA isn't a good option for my current project because the macro warning will, without fail, unnerve the target audience of novice Excel users. I picture them backing away from their computers, slowly, and then, at a safe distance, pulling the plug.

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    Pressing F9 calculates the sheet, selecting a range will not trigger the conditional formatting because there has been no calculating until something has been entered.

  11. #11
    Registered User
    Join Date
    01-13-2017
    Location
    Los Angeles
    MS-Off Ver
    10
    Posts
    1

    Re: Change fill of active cell to a more noticeable color using conditional formatting onl

    Hi, guys! Thanks for the topic. And for your replies. All of them are so useful, especially I like this one "I did a search of the internet to see if I could get a refresh on the selection of a cell, but discovered that there are good reasons for making this a difficult-to-implement option. I still wonder if incorporating a volatile function might work like concatenating an IF statement with a nested TODAY() function."
    I have recently made the similar topic research for the GetAcademicHelp.com

+ 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: 21
    Last Post: 12-16-2015, 03:04 PM
  2. Fill color of cells with conditional formatting for more than 3 criterias
    By Sai Prashanth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2014, 03:58 PM
  3. Replies: 10
    Last Post: 06-19-2013, 05:28 PM
  4. Replies: 0
    Last Post: 09-26-2012, 01:08 PM
  5. Change a cell's formatting, like 25% gray fill or L,R,T,B border color ???
    By BaLLZaCH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2009, 05:19 PM
  6. Cell Formatting Conditional On Other Cells Fill Color?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2006, 12:25 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