Custom Header date value as date

  • Thread starter Thread starter christobal
  • Start date Start date
C

christobal

I have a print function which shows a small area of a worksheet. Thi
area has a range (date) which returns a date. How can this date b
formatted in the PageSetup..RightHeader field to represent the date an
not the date value i.e.
" Date 12/12/2004" and not "Date 38333
 
Hi
try something like

PageSetup.RightHeader = format(Range("A1").value,"MM/DD/YYYY")
 
Hi
You have to add the worksheet object. e.g.
activesheet.PageSetup.RightHeader =
format(Range("A1").value,"MM/DD/YYYY")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top