Is there a way to make the day's name show up automatically in a header?

Marq

Well-known Member
Joined
Dec 13, 2004
Messages
914
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
I have a form I print out every day..and in the top right custom header I have the &[DATE], which automatically gives the current date in top right corner of form when printed.

I'd also like to have the actual day's name show up automatically under the date. I tried putting below it &[DAY] but it didn't work.

any suggestions how to make this happen?
 
Last edited:
Because as Mark said, it was concatenating the 2 with the first part of the date.
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Because as Mark said, it was concatenating the 2 with the first part of the date.
aahhhhhh...I thought that was effecting the font size only...but I see what you are saying.

thanks for clearing it up for me.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
How about
VBA Code:
Me.PageSetup.RightHeader = "&""Arial,Bold""&21&D" & Chr(10) & Format(Weekday(Date), "dddd")
This will give 21pt typeface
You do not need the Weekday function call surrounding the Date function as this will work the same...
Excel Formula:
Format(Date, "dddd")
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,702
Members
449,048
Latest member
81jamesacct

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