Syntax

expression.Count(pc)

expression A variable that represents a DocumentProperties object.

Parameters

Name Required/Optional Data Type Description
pc Required Long Represents the index of the document property.

Return Value
Long

Example
This example displays the number of custom document properties in the active document.

Visual Basic for Applications
MsgBox ("There are " & _ ActiveDocument.CustomDocumentProperties.Count & _ " custom document properties in the " & _ "active document.")

See also: