Table of contents
TOC
Collapse the table of content
Expand the table of content

DocumentProperties.Count Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets a Long indicating the number of items in the DocumentProperties collection. Read-only.

Syntax

expression. Count( pc )

expression A variable that represents a DocumentProperties object.

Parameters

NameRequired/OptionalData TypeDescription
pcRequiredLongRepresents the index of the document property.

Return Value

Long

Example

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

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

See also

Concepts

DocumentProperties Object

Other resources

DocumentProperties Object Members

© 2018 Microsoft