This simple Function doesn't update the result.... I have to edit the cell to
calculate new result. The easiest way i found is to prees 'F2' and 'Enter'
for each cell that have this function...
Thanks for any help
Function CupaoActual(RangeDatasCupao As Range) As Byte
Dim j As Byte
For j = 1 To RangeDatasCupao.Count
If RangeDatasCupao(1, j) > Range("TodayDate") Then
CupaoActual = j - 1
Exit Function
End If
Next
End Function
Bookmarks