Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Calculate
End Sub
I recommend you take a look at my file.
Sorry, I only download xlsx files and so I cannot test.
What I did is to use the conditional formatting formula that you posted in a range and it behaved as I expected.
It works OK with cells that are not empty.
It works the same with and without the event procedure.
As I said I'm using excel 2013.
Hope it works OK for omairhe.
The formula works with any cell, empty or non-empty.
I have 2007 and I need the event procedure.
That is the idea, that works for omairhe.
@omairhe
Only one detail was missing. In the conditional format, in Refers to: Select all cells (=$1:$1048576)
I can confirm that formula works with any cell and my requirment is 100% fulfilled. Although the uploaded sheet did not work with my Excel 2019 version but following the steps provided by Dante Amor worked as a charm. Also event procedure is needed, without that it will not highlight the selected cell.
Thank you .
Oh, one problem though. selecting the new cell and forcing a Calculate will cancel cut/copy mode.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Calculate
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = False
End Sub