i'm trying to fill between startDate and Enddate.
Sub corresp()
Dim r As Integer
Dim c As Integer
Dim j As Integer
Dim k As Integer
For k = 4 To 10
For j = 4 To 366
If Not IsError(Application.Match(Folha2.Range("A" & k).Value, Range("A1:A8"), 0)) Then
r = WorksheetFunction.Match(Folha2.Range("A" & k).Value, Range("A1:A8"), 0)
End If
If Not IsError(Application.Match(Folha2.Cells(k, j), Range("A3:IU3"), 0)) Then
c = WorksheetFunction.Match(Folha2.Cells(k, j), Range("A3:IU3"), 0)
Cells(r, c).Interior.ColorIndex = 6
End If
Next j
Next k
End Sub
this code leave blank cell between date