Highlight active cell

Occasional Contributor

Does anybody know how to highlight the active cell selection in Excel. I have a large table of data in which recurring values are often searched for and whilst the search is accurate enough, it's still hard to see where the value has been located.


5 Replies
Is it possible to provide screenshot
while search process ?

@Malcolm McMaster  I get what you are saying.  Here are a few tips that might help you if you don't know them already:

1) to the left of the formula bar (where you type values in) is a box that shows the location of the current selection.  That will help you know where to look

2) the row and column headers for the selected cell(s) are slightly darker so you can zoom in on the right location

3) you can always click the FILL button to make the cell(s) yellow (or whatever color you choose) and then click it again and select to remove that fill

@Malcolm McMaster 


I believe you could add a macro to your worksheet containing the table to highlight the selected cell.


I would also suggest adding a cell to your worksheet, which I named "EnableHighlight," so you could turn it on/off without having  to edit the vba code every time.


I attached an example file you can play with. If you right click on the worksheet tab and select "view code," then you will see the macro.


If you do add the macro to your own workbook, then be sure to save it as .xlsm (macro enabled) and not a .xlsx or the macro will get stripped out.

@JMB17  Many thanks this is great start.


@Malcolm McMaster 


If you are solely checking for duplicates, why not use conditional formatting to find and highlight in one easy step?


Select data range to be checked then, from the Home tab, select Conditional Formatting, from the drop-down choose Highlight Cells Rules and then Duplicate Values.  Done!