Code:
Public Sub test_property()Dim mydoc As Document
Set mydoc = ThisApplication.ActiveDocument
Dim myPropertySets As PropertySets
Set myPropertySets = mydoc.PropertySets
Dim myPropertySet As PropertySet
Dim i As Double
'****** Du kannst auch die "for each myPropertySet in myPropertySets" benutzen, aber so ist es deutlicher ***
For i = 1 To myPropertySets.Count
Set myPropertySet = myPropertySets.Item(i)
Debug.Print "Item " & i & " " & myPropertySet.DisplayName & "--" & myPropertySet.InternalName
Next
'****************************************************************************************************
'Item 1 Inventor - Zusammenfassungsinformationen--{F29F85E0-4FF9-1068-AB91-08002B27B3D9}
Set myPropertySet = myPropertySets.Item(1)
myPropertySet.ItemByPropId(kTitleSummaryInformation).Value = "Mein Projekt" ' Value 2
myPropertySet.ItemByPropId(kSubjectSummaryInformation).Value = "daywa1k3r's Thema" ' Value 3
myPropertySet.ItemByPropId(kAuthorSummaryInformation).Value = "daywa1k3r" ' Value 4
myPropertySet.ItemByPropId(kKeywordsSummaryInformation).Value = "Meine Keywords" ' Value 5
myPropertySet.ItemByPropId(kCommentsSummaryInformation).Value = "Mein Kommentar" ' Value 6
myPropertySet.ItemByPropId(kRevisionSummaryInformation).Value = "Meine Revisions Nummer" ' Value 9
'****************************************************************************************************
'****************************************************************************************************
'Item 2 Inventor - Zusammenfassungsinformationen für Dokument--{D5CDD502-2E9C-101B-9397-08002B2CF9AE}
Set myPropertySet = myPropertySets.Item(2)
myPropertySet.ItemByPropId(kCategoryDocSummaryInformation).Value = "Meine Kategorie" ' Value 2
myPropertySet.ItemByPropId(kManagerDocSummaryInformation).Value = "natürlich daywa1k3r " ' Value 14
myPropertySet.ItemByPropId(kCompanyDocSummaryInformation).Value = "daywa1k3r's" ' Value 15
'****************************************************************************************************
'***... Und so weiter, und so weiter,...
End Sub