I need to highlight cells: If already highlighted then find number in another cell and highlight that
Here is my very basic code.
It works but I have found if I have muliples of the same number it will still only highlight the first found. I need it to be able to tell that its already highlighted and move to the next and highlight that one.
Sub Find_FirstmanUALDar()
Dim FindString8 As String
Dim Rng8 As Range
FindString8 = Sheets("DAR").Range("D12").Value
If Trim(FindString1) <> "" Then
With Sheets("GL").Range("AC:AC")
Set Rng8 = .Find(What:=FindString8, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng8 Is Nothing Then
Application.Goto Rng8, True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End If
End With
I know its ugly but please help. Thanks