Newbie question--chg slashes in date format to dashes

friedrice

New Member
Joined
Sep 14, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I want to format page header date as mm-dd-yyyy and not the default date format of mm/dd/yyyy in my right-hand side page header box. Want dashes not slashes. See attached image of what I have right now. Thanks

temp Excel Forum want 9-13-2023 format.png
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Sorry! Running on "no coffee so far" today. Try here for instructions:

 
Upvote 0
Sorry! Running on "no coffee so far" today. Try here for instructions:

I believe that is also referring to worksheet cells, not the page layout header.

@friedrice
Have you studied the link in post #2? That details the steps required using vba code in the BeforePrint event.
 
Upvote 0

Forum statistics

Threads
1,216,069
Messages
6,128,600
Members
449,460
Latest member
jgharbawi

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