Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    May 2003
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Initialising the SAVEDATE (WordXP)

    One of my Word templates has the SAVEDATE field on it. I would like to have this initialised to the CREATEDATE and then updated when the document is saved. Is this possible?

    Thanks.

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Initialising the SAVEDATE (WordXP)

    Why do you want it updated on save if it is the create date? How do you expect it to change?

    The only possibility I can think of is that you want to update the field when the file is 'Saved As'. If this is the case, maybe you want to hijack the SaveAs command to add an update fields in there.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    2 Star Lounger
    Join Date
    May 2003
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Initialising the SAVEDATE (WordXP)

    Q: Why do you want it updated on save if it is the create date?

    A: We want the document to show the date last changed. However, when first creating the document, this date is not set up, because it is only set up after saving the document. The only way to see the date is to first save the document and then print preview it to see the date. This is a bit clunky. Is it possible to have the SAVEDATE set to the current date when creating the document?

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Initialising the SAVEDATE (WordXP)

    Hi Marie:
    I'm not sure that this is any less clunkier because you will still have to update the field. By the way, you can either put the cursor in front of the field & press F9 or Ctrl+A to select the document & then press F9. Bryan Carbonnell wrote a macro that updates all fields in a document, no matter where they are. In any event, you can use the following field:

    { IF { filename } = Document1 "{ createdate }" "{ If { filename } = Document2 "{ createdate }" "{ If { filename } = Document3 "{ createdate }" "{ savedate }" }" }" }

    This takes advantage of the fact that Word names unsaved document Document1, etc. So the above field (the curly braces are inserted with Ctrl+F9, not typed) inserts the createdate field if the filename is an unsaved one, but inserts the savedate field once it's been saved. You could expand it beyond Document3 if you wanted. However, as I said, you'll still have to update the savedate field.
    Cheers,

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Initialising the SAVEDATE (WordXP)

    I looked at several different field types in the Insert > Field dialog, and the one that seems the closest to "one-stop shopping" is the following. However, if the user's name is blank, it will give the wrong information. I think the best check would be to see whether there is a "" in the file name, but I don't know how to look for a string inside a string using a field. (Just wait 'til Macropod finds this thread. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> )

    { IF { LastSavedBy } = "" "{ CreateDate }" "{ SaveDate }" }

    (As always, those {} are field braces and not the keyboard characters.)

  6. #6
    2 Star Lounger
    Join Date
    May 2003
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Initialising the SAVEDATE (WordXP)

    Thank you! You have really made my day! <img src=/S/bananas.gif border=0 alt=bananas width=33 height=35> <img src=/S/bouncenburn.gif border=0 alt=bouncenburn width=31 height=31> <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>

Posting Permissions

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