I'm having trouble getting my dates to compare correctly.
Dim dt As String
dt = Format(InputBox("Enter Date"), "mm/dd/yyyy")
For a = lastrowa To 1 Step -1
If (Sheets("active Prior YE").Cells(a, 11)) < dt Then
Rows.EntireRow(a).Interior.Color = RGB(255, 255, 0)
End If
Next a
This code is not highlighting rows with dates that are <dt
The formatting of the cells is *d/mm/yyyy.
Thanks in advace.
Dim dt As String
dt = Format(InputBox("Enter Date"), "mm/dd/yyyy")
For a = lastrowa To 1 Step -1
If (Sheets("active Prior YE").Cells(a, 11)) < dt Then
Rows.EntireRow(a).Interior.Color = RGB(255, 255, 0)
End If
Next a
This code is not highlighting rows with dates that are <dt
The formatting of the cells is *d/mm/yyyy.
Thanks in advace.