Documents Properties Summary

S

Steve O

Is there a way to have information from a Word cover page
be pulled in automatically into the Properties-Summary
fields for the same document? I am aware that it obtains
the author and some other autopopulated fields but if I
have the word Categories on the cover page, is there a
way to have the category pulled into the Summary fields
of the document; even if it is in the Comment section?
 
G

Greg

Steve,

I am a novice at VBA and pounded out the following. If
you bookmark the input of your comments category with a
bookmark named "Comments" the macro will apply the
contents to the Comments property:

Public Sub SetDocProperties()


Dim ComProperty As String

ComProperty = ActiveDocument.Bookmarks"Comment").Range.Text
With ActiveDocument
.BuiltInDocumentProperties("Comments").Value =
ComProperty
End With

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top