Graham, so i used your coding below to grab yesterdays date and i added a "-1" below but it didn't work?
If CDate(Format(olItem.SentOn, "dd/mm/yyyy")) = CDate(Format(Date-1, "dd/mm/yyyy")) Then 'test for today's messages
Graham, so i used your coding below to grab yesterdays date and i added a "-1" below but it didn't work?
If CDate(Format(olItem.SentOn, "dd/mm/yyyy")) = CDate(Format(Date-1, "dd/mm/yyyy")) Then 'test for today's messages
Last edited by Aussiebear; 02-17-2025 at 11:08 PM.