T tc Jan 7, 2008 #1 hi. i need to create a macro that will alow me to find the difference in days between two given dates. is this possible? thanks
hi. i need to create a macro that will alow me to find the difference in days between two given dates. is this possible? thanks
D Dave Peterson Jan 7, 2008 #3 Just subtract them Dim Date1 as date dim Date2 as date date1 = dateserial(2007,12,25) date2 = dateserial(2008,1,13) msgbox date2 - date1 '+ 1 Is the 3rd - 1st a difference of 3 days or 2 days?
Just subtract them Dim Date1 as date dim Date2 as date date1 = dateserial(2007,12,25) date2 = dateserial(2008,1,13) msgbox date2 - date1 '+ 1 Is the 3rd - 1st a difference of 3 days or 2 days?