referencing the current month in a heading

ericpny2

New Member
Joined
Jun 4, 2011
Messages
33
I have a ton of sheets within a workbook that alll have a heading with the date and other information at the top.

i have used "[tab]" in the heading to fill that area with the name of the tab.

Is there a similar command to fill in the current month?
I tried [month] and also tried referencing a specific cell that contained the month, but i have had no luck. please let me know

Thanks
 
(The Company Name)
(Job number)
"Weather Conditions for August 2011"

All of that goes into the center header
Weather conditions is the name of that tab and that is where i used the &[tab]
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try like this

Code:
ActiveSheet.PageSetup.CenterHeader = "Company Name 0001 & Weather conditions for " & Format(Date, "mmmm")

If you need variables for some of this you will need to tell us exactly where they are.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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