I have a spreadsheet of data that has several columns. I have the following portion of VBA code that is not working properly.
Columns D and K contains Dates, or nothing. However, it doesn't seem to be recognizing the empty date cells.
Any ideas why?
Code:
Sheets(1).Select
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To LR
If Range("C" & i) = "Blah-Blah" And Range("K" & i) = "" Then
Range("K" & i) = Range("D" & i)
End If
Next i
Columns D and K contains Dates, or nothing. However, it doesn't seem to be recognizing the empty date cells.
Any ideas why?