Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare two dates | Excel Discussion (Misc queries) | |||
compare 2 tables of dates to find the preceding dates | Excel Worksheet Functions | |||
Compare dates with lag | Excel Worksheet Functions | |||
compare dates | Excel Worksheet Functions | |||
how do I compare two dates? | Excel Worksheet Functions |