Results 1 to 2 of 2

Thread: Read MSWord Header Info

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Milford, NH
    Posts
    15

    Post

    How can I read the document properities, custom entries.

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122

    Post

    Select "MS Word Object Library" in project - references

    Code:
    Dim objword As Word.Application
    Dim prop As Object
    
    Set objword = New Word.Application
    objword.Documents.Open "G:\Projekte\BOSCH\Word-Vorlagen\Prüfvorschrift\Work\Deckblatt.dot", , True
    
    For Each prop In objword.ActiveDocument.CustomDocumentProperties
        MsgBox prop.Name & ": " & prop.Value
    Next
        
    objword.ActiveDocument.Close
    objword.Quit
    
    Set objword = Nothing

Posting Permissions

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



Click Here to Expand Forum to Full Width