I'm trying to clean up my code. I want to change how I compare dates. It works when I type in the date, but when I declare a function and set it to a date, it doesn't work.
Working Code
Sub TestMod()
'.......................................................
Dim LastRow As Long...