Hi! I have the code below :
My problem is that when I run the macro , in the range of cells (let's say E6:AI6) , it fills only with a single value ("yes" or "no") even if in the range are cells with another color! Can you help me please? thank you!
Code:
Sub PopulareCelule()
Dim k As Integer
Dim l As Integer
k = ActiveCell.Column
l = ActiveCell.Row
For i = k To 35
If ActiveCell.Interior.ColorIndex = 4 Then
Cells(l, i).Value = "yes"
Else
Cells(l, i).Value = "no"
End If
Next
End Sub