I'm not the best with VBA...but I was able to write something that works.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim numbers As Range
Dim xvz As Integer
Set numbers = Range("C3:h23")
xvz = Range("b25").Value
For Each cell In numbers
If cell.Value = xvz Then
With cell.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End If
Next cell
End Sub
I have this as a selection change event (Right click on the tab and select view code...paste it in there) I've also included the updated example sheet.
Bookmarks