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
SteamerAsked:
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.

antratCommented:
Hi steamer

Try

Dialogs(wdDialogDocumentStatistics).Show



antrat
0
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.
0
blakeh1Commented:
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
            .InsertParagraphAfter
            .InsertAfter prop.Name & "= "
            On Error Resume Next
            .InsertAfter prop.Value
        End With
    Next
End Sub

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


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

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!

blakeh1Commented:
You can use the same for customdocument properties
0
antratCommented:
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"

antrat
0
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
0
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.