This is the code.
Code:
Sub SetProperties()
'
' Set key document properties
'
Dim Rng As Range
With ActiveDocument
'
' Category property
.BuiltInDocumentProperties("category") = "Generic Template"
'
' Title property
Set Rng = .Tables(1).Cell(2, 2).Range
Rng.End = Rng.End - 1
.BuiltInDocumentProperties("title") = Rng.Text
'
' Subject property
Set Rng = .Tables(1).Cell(4, 2).Range
Rng.End = Rng.End - 1
.BuiltInDocumentProperties("subject") = Rng.Text
'
' Author property
Set Rng = .Tables(1).Cell(9, 2).Range
Rng.End = Rng.End - 1
.BuiltInDocumentProperties("author") = Rng.Text
'
' Manager property
Set Rng = .Tables(1).Cell(10, 2).Range
Rng.End = Rng.End - 1
.BuiltInDocumentProperties("manager") = Rng.Text
'
' Save document - macro will be mapped to CTRL+S
.Save
End With
End Sub
Images of the table and document properties are attached.