Thread
:
Want only current year in header/footer - How?
View Single Post
12-05-2019, 06:09 PM
jeffreybrown
Windows 10
Office 2016
Expert
Join Date: Apr 2016
Posts: 673
Just run this macro once a year. No need to store a date on the worksheet.
Code:
Sub add_date_header() ActiveSheet.PageSetup.CenterHeader = Format(Date, "yyyy") End Sub
jeffreybrown
View Public Profile
Find all posts by jeffreybrown