Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Nov 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Date and Time codes (Word 2000/All)

    Hi, hoping someone with some programming skills can answer this one. I am trying to verify a Word document's true dates and times as found in the Properties section. Problem with opening and checking it is that it changes to match you own system date and times when last modified, etc. I want to be able to take the raw file and with a hex editor find and interpret the coded date and times. Any ideas?

    MrWoccy

  2. #2
    5 Star Lounger
    Join Date
    Oct 2002
    Location
    Wellington, Wellington, New Zealand
    Posts
    621
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date and Time codes (Word 2000/All)

    MrWoccy

    The Application's internal standard properties do not update until you save.
    Accordingly, they can be looked at with VBA as in
    Sub LookAtProperties
    MsgBox Application.Documents(1).builtinproperties(wdPrope rtyTimeCreated)
    End Sub

  3. #3
    Star Lounger
    Join Date
    May 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date and Time codes (Word 2000/All)

    Andrew,

    I found the following code worked in Word XP (not sure about previous versions).

    Sub LookAtProperties()

    MsgBox Application.Documents(1). <font color=red>BuiltInDocumentProperties</font color=red> (wdPropertyTimeCreated)

    End Sub

    Regards,

    Matthew

  4. #4
    New Lounger
    Join Date
    Jul 2002
    Location
    Princes Risborough, Buckinghamshire, England
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date and Time codes (Word 2000/All)

    You could also use VBA's FileDateTime function, which allows you to get the last modification date without having to use Word to open the file.

    Another strategy might be to insert a SaveDate field into the document. (In Word 2000, choose Insert >Field, set Category to Date and Time, and Field Name to SaveDate, then press the options button to choose your preferred format.)

Posting Permissions

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