(Solved) – Array form MS-Word properties

  • by

How can using DocProperty in MS-Word Fields as array form?

I’m using this code to ordinary doc-property creation.

Sub InsertProperty(strPropName As String)
   'The IsPropertyExists is a function which returns Boolean.
   If Not IsPropertyExits(strPropName) Then

         ActiveDocument.CustomDocumentProperties.Add _
            Name:=strPropName, LinkToContent:=False, Value:=vbNullString, _
   End If

End Sub 'InsertProperty

While needed fields in table cells with variable count of rows, using array form of doc-properties in fields.

{DOCPROPERTY PropName(subscript1,subscript2,...,subscriptN) * MERGEFORMAT}

Leave a Reply

Your email address will not be published. Required fields are marked *