Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Smudge Smudge is offline
external usenet poster
 
Posts: 16
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Field Codes Rhino New Users 16 June 19th 06 06:06 AM
Mail Merge Data Question Tom Bean Mailmerge 7 May 26th 06 12:02 AM
Creating pleading pages on intermitten pages in a long document Big Steve Page Layout 0 January 12th 06 02:27 AM
Copy Word TOC into a document with less pages garfield-n-odie Microsoft Word Help 0 November 10th 05 12:29 AM
How do I remove excess blank pages from a finished document? dr.sara Microsoft Word Help 2 November 25th 04 12:14 AM


All times are GMT +1. The time now is 04:59 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"