Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
date plus one day for different pages of document
Hiya,
Is there any way I can enter a future date on the first page of a document and have it automatically fill in the date of the next day on each subsequent page. I am a complete beginner so it would help if any explanations are simple. Thank you so much. -- Smudge |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
date plus one day for different pages of document
This is hardly the sort of thing for a beginner as the field construction is
complex. Iin the document header you need the following fields, which produce the dates incremented by one on each page in the format of the switch at the end. The delay from the current date is nDays - here 2. To save you mistyping all those fields download the document linked from http://www.gmayor.com/insert_a_date_...than_today.htm and copy the fields from it - then edit them to produce that below. If you don't want the dates to update when you open the document in the future, change the DATE fields to CREATEDATE fields. {QUOTE { SET nDays 2 }{ SET Delay { ={ Page } + { nDays } - 1 } }{SET a{=INT((14-{DATE \@ M})/12)}}{SET b{={DATE \@ yyyy}+4800-a}}{SET c{={DATE \@ M}+12*a-3}}{SET d{DATE \@ d}}{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}{SET e{=INT((4*(jd+32044)+3)/146097)}}{SET f{=jd+32044-INT(146097*e/4)}}{SET g{=INT((4*f+3)/1461)}}{SET h{=f-INT(1461*g/4)}}{SET i{=INT((5*h+2)/153)}}{SET dd{=h-INT((153*i+2)/5)+1}}{SET mm{=i+3-12*INT(i/10)}}{SET yy{=100*e+g-4800+INT(i/10)}}{=dd*10^6+mm*10^4+yy \# "00'-'00'-'0000"} \@ "d MMM yyyy"} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Smudge wrote: Hiya, Is there any way I can enter a future date on the first page of a document and have it automatically fill in the date of the next day on each subsequent page. I am a complete beginner so it would help if any explanations are simple. Thank you so much. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help with Field Codes | New Users | |||
Mail Merge Data Question | Mailmerge | |||
Creating pleading pages on intermitten pages in a long document | Page Layout | |||
Copy Word TOC into a document with less pages | Microsoft Word Help | |||
How do I remove excess blank pages from a finished document? | Microsoft Word Help |