Month and Year in Excel Header Mac

excellence

Board Regular
Joined
Oct 5, 2005
Messages
133
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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