B
Bythsx-Addagio
Dates seem to be giving me trouble.
In my macro process I open an excel file that is created automatically each
month in a batch process. The file has the date for which the report was run
for printed in cell A1. I would like my macro to check that the date
printed in the file equals the last day of the previous month.
Basically this... even though I know it is very wrong.
Date1 = DATE(YEAR(TODAY()),MONTH(TODAY()),0)
Date2 = windows(filename).cells("A1").value
If Date1 = Date2 Then
Hopefully this will help me finally learn how to handle dates.
Thanks.
In my macro process I open an excel file that is created automatically each
month in a batch process. The file has the date for which the report was run
for printed in cell A1. I would like my macro to check that the date
printed in the file equals the last day of the previous month.
Basically this... even though I know it is very wrong.
Date1 = DATE(YEAR(TODAY()),MONTH(TODAY()),0)
Date2 = windows(filename).cells("A1").value
If Date1 = Date2 Then
Hopefully this will help me finally learn how to handle dates.
Thanks.