Sub PrintCustomProperties()
Dim oProperty As DocumentProperty
Dim oDoc As Document
Dim PropDoc As Document
Dim oRng As Range
Set oDoc = ActiveDocument
Set PropDoc = Documents.Add
PropDoc.Range.ParagraphFormat.TabStops.Add InchesToPoints(2)
For Each oProperty In oDoc.CustomDocumentProperties
Set oRng = PropDoc.Range
oRng.Collapse wdCollapseEnd
oRng.Text = oProperty.Name & vbTab & oProperty.Value & vbCr
Next oProperty
PropDoc.PrintOut
PropDoc.Close
End Sub
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.