1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

excel date format

Discussion in 'Business Applications' started by drafter, Jan 27, 2004.

Thread Status:
Not open for further replies.
  1. drafter

    drafter Thread Starter

    Nov 21, 2000
    Can anyone tell me how to change the format of the date in a footer. I would like in to read "Jan-27-04"
  2. MsPCGenius


    Apr 24, 2000
    If you use the Custom Footer option, you can type in whatever you like. I could not find a way to enter the data so that it updates based on your computer's internal settings,
  3. XL Guru

    XL Guru

    Aug 30, 2003
    I thought this was tied to Control Panel (Regional), but even then couldn't tweak it effectively.

    You could use code in personal.xls, eg:

    ActiveSheet.PageSetup.LeftFooter = Format(Now, "mmm-dd-yy")

    , or you might want to store it in the workbook module. Rightclick the Excel icon left of "File" in the menu bar, choose "View Code". Then paste this in.

    Private Sub WorkBook_BeforePrint(Cancel As Boolean)
    ActiveSheet.PageSetup.LeftFooter = Format(Now, "mmm-dd-yy")
    End Sub

    BeforePrint is covered in VBA Help.

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/198536

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice