Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
In the header there is an icon that will automatically insert the current
date on the header. Is there a way to put the previous day as the date in the header? I've tried different formulas but they don't work. |
#2
![]() |
|||
|
|||
![]()
Hi
An easy way is a small macro in the ThisWorkbook module: Private Sub Workbook_BeforePrint(Cancel As Boolean) ActiveSheet.PageSetup.LeftHeader = Format(Date - 1, "dddd mmm dd yyyy") End Sub HTH. best wishes Harald "Irma" skrev i melding ... In the header there is an icon that will automatically insert the current date on the header. Is there a way to put the previous day as the date in the header? I've tried different formulas but they don't work. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
format the "date" button for a header | Excel Discussion (Misc queries) | |||
Conditonal Format with a date format | Excel Discussion (Misc queries) | |||
Excel enters date as a text format | Excel Discussion (Misc queries) | |||
How to format a date to a different format | Excel Discussion (Misc queries) | |||
Date Format Question | Excel Discussion (Misc queries) |