Excel - Attn Gord Dibben

Asked By KathrynBassett
14-Jan-10 08:51 PM
In a thread from a year ago at
http://www.officekb.com/Uwe/Forum.aspx/excel/34822/Excel-2000-Header-Date-Format
I am interested in your post dated 30 Jan 2009 00:26 GMT. I am having a similar
problem with Excel 2007 and have seen your name replying to similar threads
all over the place. First, I will post my problem (from a copy/paste elsewhere),
then ask about something you said in that particular reply.

Vista Business SP2 in case it makes a difference to my question.
Default Dates not honoring Regional/Language Options

I have Regional/Language Options Short Date set to "dd MMM yyyy" (9 Jan 2010)
and Long Date set to "dddd, MMMM dd, yyyy" (Saturday, January 09, 2010).

In the header of my spreadsheet, I have "Printed &[Date]".

My question is, why does the header print "Printed 09 01 2010" instead of

I have not been able to find anyplace to set it. In Excel Options, I have gone
through everything several times and do not see where to change it so that it
uses the computer's settings. There must be someplace, because when
formatting a cell to use short date, and type "26 jan 10" it comes out "26 01
2010" and if I format a cell to use long date and type "26 jan 10", it comes
out correctly as "Tuesday, January 26, 2010". So it is honoring the computer
long date but not the computer short date.

Though I am pretty decent in QuattroPro, I am a novice at Excel. So I need step-
by-step instructions on fixing this.

Now, on to your post - You said: "Place this code in Thisworkbook module".
Can you explain what that means? I looked up Thisworkbook in the help file
and it did not come up with anything.

Changing what you posted in the other thread, I will modify the ActiveSheet
line to reflect the left footer that I want, and the format of the date for
same reason, resulting in below. Any reason that will not work? If it does, then
I just need to know about that Thisworkbook thing to know what to do with it.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName _
& " " & ActiveSheet.Name _
& "   " & Format(Date, "dd mmm yyyy")
End Sub

Once this is all working, do I assume correctly that I need to add this to
each workbook that I want to print with this date format?

Also, what do I do to get a date CELL to print a date like 14 Jan 2010.
ActiveSheet.PageSetup.LeftFooter
(1)
Microsoft Excel
(1)
PageSetup
(1)
ActiveWorkbook.FullName
(1)
Excel 2007
(1)
Excel
(1)
Vista
(1)
Workbook
(1)
  walrus replied to KathrynBassett
15-Jan-10 03:24 AM
Hey Kathy


Thisworkbook will come up if you hit Alt+F11. look on the left side of the
window that opens..
  Gord Dibben replied to KathrynBassett
15-Jan-10 12:41 PM
Excel respects the short date format only to a point.

dd mmm yy will not be respected.

You cannot change this within Excel except by formatting.

The BeforePrint code goes into Thisworkbook module.

Alt + F11 to open VBE, Ctrl + r to open Project Explorer.

Selecy your workbook/project and expand.

Expand Microsoft Excel Objects.  Double-click to open Thisworkbook module.

Paste the code in there.

Yes.......using this method, you must place the code in every workbook.

You could set it up differently

Add this macro to a General module in your Personal.xlsb

Sub add_date()
ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName _
& " " & ActiveSheet.Name _
& "   " & Format(Date, "dd mmm yyyy")
End Sub

Run it whenever you want to add a footer to a sheet in any workbook.

To format  09 01 2010  to  9 Jan 2010  use a custom format of  d mmm yy

For more on Personal.xlsb  see Ron de Bruin's site.

http://www.rondebruin.nl/personal.htm


Gord
Create New Account
help
Win7 VirtualStore Weirdness with Excel 2002 and earlier Excel I thought I'd share a weird experience I had today in case it saves installer for it - - which registers it as an add-in for all installed versions of Excel - - and tested it. Fine in Windows 2000 in all installed versions of Excel. Boot to Windows XP, fine there too. Boot to Windows 7. Fine in Excel 2010, 2007, and 2003. But Excel 2002 and 2000 were still loading the old version of the add-in. I uninstalled the add-in, made sure it was gone, and reinstalled it. Same problem in Excel 2002 and earlier; still works fine in Excel 2003 and later. I opened the VB
Pb de recalcul Excel Bonjour, J'ai un problème de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF cela soit automatique ? Merci d'avance à ceux qui se pencheront sur mon cas. Caroual Excel - French Discussions WorksheetFunction (1) AddIns (1) Worksheets (1) Excel 2007 (1) Macro (1) Proc (1) LEFT (1) VBA (1) Bonsoir Dans la doc sur HEXBIN Quant ? cette page, elle parle de non fonctionnement si VBA est d?sactiv? . . . . http: / / support.microsoft.com / kb / 282847 / fr#appliesto Par contre, ceci = HEX2BIN("B3") donne 10110011 Jacquouille 4f05e5b4$0 426a74cc@news.free.fr. . . Bonjour, J'ai un probl?me de recalcul de ma feuille excel. J'importe une colonne qui se retrouve en texte 0000 0000 0000 0000 FFF0 7FFF e ou Bonjour, D??butons par une petite explication : Auparavant sous les versions ant??rieures ?? Excel 2007, si les 2 macros compl??mentaires ("utilitaire d'analyse" ou titre d'exemple directement
32 bit DLL with 64 bit Excel 2010 Excel We have an app which creates large Excel workbooks. For example, one workbook has 1, 000 worksheets. In other cases there are fewer worksheets but the Excel file can be 80 MB or larger. Since this sometimes crashes Excel 2007 and 2003, I am considering using 64 bit Excel 2010. Would 64-bit Excel be more reliable with workbooks this size than 32-bit Excel? Is 32-bit Excel
Formater Font Footer Excel Bonjour = E0 tous, Je souhaiterais formater un pied de page gauche avec la police 8. . . Voici o = F9 j'en suis: With ActiveSheet.PageSetup .LeftHeader = 3D "" .CenterHeader = 3D "" .RightHeader = 3D "" .LeftFooter = 3D "& ""Arial, Regular""&8" & "Ce rapport repr = E9sente l = E0, = E7a ne fonctionne pas. . . Voyez-vous o = F9 est l'erreur ?? Merci Denys Excel - French Discussions PageSetup (1) Vista (1) Excel (1) Report (1) peut-être ceci, denys. . . à remplacer : .LeftFooter = "& ""Arial, Regular""&8" &A"& "Ce pied de page gauche avec la police 8. . . Voici où j'en suis: With ActiveSheet.PageSetup .LeftHeader = "" .CenterHeader = "" .RightHeader = "" .LeftFooter = "& ""Arial, Regular""&8" & "Ce rapport représente etc. . ." & "" end with Rendu là Voyez-vous où est l'erreur ?? Merci Denys Salut Denys, Peut-être ceci : Sub Essai() ActiveSheet.PageSetup.LeftFooter = "&""Arial"" &08" & "Ça fonctionne?" End Sub Serge d23c6d29-70c3-4b4b-b21d-3a449e1e3655@y31g2000prd.googlegroups
Fusszeile_Makro_Datumsformat_Schriftgrösse Excel Hallo zusammen wer kann mir helfen? Excel 2007 und 2010. Ich mache da was falsch mit der Verschachtelung. Der center footer sollte auch Schriftgr = F6sse 8 sein. Sub Pfadangabe() With ActiveSheet.PageSetup .LeftFooter = 3D "&8" & ActiveWorkbook.FullName .CenterFooter = 3D Format(Date, "d. mmmm yyyy") .RightFooter = 3D "&8&P von &N " End With