Professional Documents
Culture Documents
This example search in Sheets("Sheet1") in column A for every cell with "ron" and
use Offset to mark the cell in the column to the right. Note: you can add more
values to the array MyArr.
Sub Mark_cells_in_column()
Dim FirstAddress As String
Dim MyArr As Variant
Dim Rng As Range
Dim I As Long
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
'If you want to find a part of the rng.value then use xlPart
'if you use LookIn:=xlValues it will also work with a
'formula cell that evaluates to "ron"
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub