Share via


Presentation.CustomDocumentProperties Property

PowerPoint Developer Reference

Returns a DocumentProperties collection that represents all the custom document properties for the specified presentation. Read-only.

Syntax

expression.CustomDocumentProperties

expression   A variable that represents a Presentation object.

Return Value
DocumentProperties

Remarks

Use the BuiltInDocumentProperties property to return the collection of built-in document properties.

For information about returning a single member of a collection, see How to: Return Objects from Collections.

Example

This example adds a static custom property named "Complete" for the active presentation.

Visual Basic for Applications
  Application.ActivePresentation.CustomDocumentProperties _
    .Add Name:="Complete", LinkToContent:=False, _
    Type:=msoPropertyTypeBoolean, Value:=False

This example displays the active presentation if the value of the "Complete" custom property is True.

Visual Basic for Applications
  With Application.ActivePresentation
    If .CustomDocumentProperties("complete") Then .PrintOut
End With

See Also