Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
End of Month Date in Header
I would like the last date of the current month to appear in the worksheet
header. Can eomonth be used in a macro? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
End of Month Date in Header
You could, but you could use a simpler formula:
Dim myDate As Date myDate = Date - Day(Date) With Worksheets("Sheet1").PageSetup .LeftHeader = Format(myDate, "mmmm dd, yyyy dddd") End With Subtracting 18 from May 18th, gives May the 0th. Or the last day of April. CarrieW wrote: I would like the last date of the current month to appear in the worksheet header. Can eomonth be used in a macro? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
count month when date is in day/month/year format | Excel Worksheet Functions | |||
Match Month in Date With Month in Header | Excel Worksheet Functions | |||
Date arithmetic: adding 1 month to prior end of month date | Excel Worksheet Functions | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
=VLOOKUP(1,Nationality!B5:B29,IF(MONTH(date)6,MONTH(date)-6, MON | Excel Worksheet Functions |