Month and Year in Excel Header Mac

excellence

Board Regular
Joined
Oct 5, 2005
Messages
155
Office Version
  1. 365
Platform
  1. MacOS
I currently have this &[Date] &[Time] in the right part of a footer on an Excel spreadsheet. I am trying to put a similar "formula" in the top left header of the same spreadsheet, but would like it to put in the current month and year automatically in the format Mmmm yyyy January 2024.

I have tried to modify my footer without success, though I believe this should be able to be done.
Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
When posting vba code in the forum, please use the available code tags. It makes your code much easier to read/debug & copy. My signature block below has more details. I have added the tags for you this time. 😊

Where is the code?
It should be in the ThisWorkbook module.

1706769546474.png
 
Upvote 0
When posting vba code in the forum, please use the available code tags. It makes your code much easier to read/debug & copy. My signature block below has more details. I have added the tags for you this time. 😊

Where is the code?
It should be in the ThisWorkbook module.

View attachment 106116
I redid it and copied to workbook, but it seems code is also in worksheet.. looks like the properties are different in both. Thanks for your patience…but tough to get for me. Looks like it is working now.
 
Upvote 0
redid it and copied to workbook, but it seems code is also in worksheet.. l
If that same code is in one or more of the worksheet modules then delete it from there. It should only be in the ThisWorkbook module.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top