Word 97 Document property

What property do i have to use in a vba application to show the contents description of a normal Word document . I treid it using the BuiltinDocumentProperties collection but it gives me an error. Is there another way to get a content description of a Word file
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi steamer



SteamerAuthor Commented:
The problem is that i have to use this in an ASP application , so it is impossible for me to use dialogs to retrieve that sort of data.
This example inserts a list of built-in properties at the end of the active document.
Sub Get_Doc_properties()
    Dim myRange As Range
    Dim prop As DocumentProperty
    Set myRange = ActiveDocument.Content
    myRange.Collapse Direction:=wdCollapseEnd
    For Each prop In ActiveDocument.BuiltInDocumentProperties
        With myRange
            .InsertAfter prop.Name & "= "
            On Error Resume Next
            .InsertAfter prop.Value
        End With
End Sub

This example displays the number of words in the active document.

wrds = ActiveDocument.BuiltInDocumentProperties(wdPropertyWords)
MsgBox "This document contains " & wrds & " words."

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

You can use the same for customdocument properties
Hi steamer

What's an ASP?

The reason for my example was because you asked

"What property do i have to use in a VBA application to show the contents description of a normal Word document"

SteamerAuthor Commented:
ASP are Active Server Pages which use VB script to make the content of webpages dynamic , but all processing is done on the server ( in short )

Question wasn't very clear , my apologies
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.