Sub ocolor()
Dim myrng As Range
Dim cell As Range
Dim myrows As Integer
Sheets(1).Activate
myrows = Range("A65000").End(xlUp).Row
Set myrng = Range(Cells(2, 1), Cells(myrows, 1))
For Each cell In myrng
If cell.Value = Sheets(2).Cells(3, 2).Value Then
cell.EntireRow.Interior.ColorIndex = 5
cell.Offset(0, 7).Value = "تم"
End If
Next
Sheets(2).Activate
End Sub