Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Nov 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calculating Dates (Word 2000)

    My document prompts the user with a fillin field for a promotion cutoff date. I can only get this to default to todays date (in the format dd MMMM YYYY).
    I have spent some time trying to resolve this and have got close, but no cigar.

    I have read a couple of threads which helped. Here is my current attempt . e.g. {= {DATE @ "MM" } +1 }
    Whilst this works I only get a two digit number for the month. I want to display for example if the date is 06 November 2002 - display 06 December 2002. I am guessing I need to set a picture but cannot seem to get this right.

    Regards
    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  2. #2
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    Faifax, Virginia, USA
    Posts
    542
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating Dates (Word 2000)

    I havent tried this myself --- but i think i would somehow try to use the Calendar OCX and retrieve the date from the object's properties.

  3. #3
    New Lounger
    Join Date
    Nov 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating Dates (Word 2000)

    Thanks for your help. This code has done exactly what I wanted. I have included the code into a fillin field and works just great.

  4. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Calculating Dates (Word 2000)

    Hi,

    Getting the month formatted as text requires another month 'switch' in the calculation (ie /00). You should be able to get what you need with something like:
    {QUOTE {SET Delay 1}{ SET ReplyMonth"{={DATE @ "MM"}+Delay}/00"}{ReplyMonth @
    Attached Files Attached Files
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •