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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
blakeh1Connect With a Mentor Commented:
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
 
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
All Courses

From novice to tech pro — start learning today.