I keep getting a syntax error as well as an identifying error at the IF
statement.
Function Remove()
Dim DateDue As Date
Dim i As Long
DateDue = Date
For i = 2 To Sheets("MasterSheet").Cells(Rows.Count, 1).End(xlUp).Row
If DateDue = DateSerial(Year(Sheets("MasterSheet").Cells(i, 1)),
Month(Sheets("MasterSheet").Cells(i, 1).Value),
Day(Sheets("Mastersheet").Cells(i, 1).Value)) Then
msgbox(dnuanfdqduii)
End If
Next i
End Function
If DateDue = DateSerial(Year(Sheets("MasterSheet").Cells(i, 1)), Month(Sheets("MasterSheet").Cells(i, 1).Value), Day(Sheets("Mastersheet").Cells(i, 1).Value)) Then