Public Function DoW(ByVal pvDte)
DoW = Format(pvDte, "ddd")
End Function
Public Sub MarkFri()
Dim bFound As Boolean
Dim vNewest
Dim iRow As Long
Columns("Q:Q").ClearContents 'clear the found items
Range("A2").Select
While ActiveCell.Value <> ""
If ActiveCell.Value > vNewest Then
vNewest = ActiveCell.Value
iRow = ActiveCell.Row
End If
If ActiveCell.Offset(0, 1).Value = "Fri" Then
ActiveCell.Offset(0, 16).Value = "found"
bFound = True
End If
ActiveCell.Offset(1, 0).Select 'next row
Wend
'mark Q col.
If Not bFound Then Cells(iRow, 17).Value = "most recent"
End Sub