Option Explicit
Sub GPE_COM()
Dim Rng As Range, sRng As Range
Dim MyAdd As String
With Sheets("Sheet1")
.Visible = True
Set Rng = .Range("A1").CurrentRegion
Rng.Interior.ColorIndex = 0
Set sRng = Rng.Find(What:="1", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
If Not sRng Is Nothing Then
MyAdd = sRng.Address
Do
sRng.Interior.ColorIndex = 35
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
End If
End With
End Sub
Bookmarks