Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
We are looking to to add a custom field to a word document that would print
the date in the following format: Feb 2, 2008 would be 8033 (or 08033) where 8 (or 08) is the last digit of the current year, and 033 is the day number of the year. I can't seem to figure out how to set up a field that will calculate this automatically based on the current date. (I could likely do it with VBA, but this needs to be applied to many documents that already exist, so it would be a large pain to add the code to all of them) We are using Word 2003. Does any guru have some ideas for me? |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
On Wed, 30 Jan 2008 14:56:01 -0800, Dale H
wrote: We are looking to to add a custom field to a word document that would print the date in the following format: Feb 2, 2008 would be 8033 (or 08033) where 8 (or 08) is the last digit of the current year, and 033 is the day number of the year. I can't seem to figure out how to set up a field that will calculate this automatically based on the current date. (I could likely do it with VBA, but this needs to be applied to many documents that already exist, so it would be a large pain to add the code to all of them) We are using Word 2003. Does any guru have some ideas for me? The top guru of date fields, fellow MVP macropod, posts his comprehensive discussion at http://www.wopr.com/cgi-bin/w3t/show...?Number=249902. Download the attachment (direct address http://www.wopr.com/w3tfiles/10-249902-DateCalc.zip) and look in the enclosed Word file for the topic "Find The Day Of The Year For A Given Date". It contains a very complex field that computes the day of year for the current date. The year part of your request is simply a matter of formatting the DATE field: { DATE \@ yy } -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delimited Date & Custom tables | Microsoft Word Help | |||
Change date format for Comments and display date in balloons | Microsoft Word Help | |||
How do I change the date format to a long date after merging it | Mailmerge | |||
I am trying to format the date returned by a custom date property | Microsoft Word Help | |||
Date issue merging from Excel field in Date format to Word | Mailmerge |