Presentation.RemoveDocumentInformation method (PowerPoint)

Removes document information, such as personal information, comments, and document properties, from a Microsoft PowerPoint presentation.

Syntax

expression. RemoveDocumentInformation( _Type_ )

expression An expression that returns a Presentation object.

Parameters

Name Required/Optional Data type Description
Type Required PpRemoveDocInfoType Type of information to be removed.

Remarks

The Type parameter value can be a combination of one or more of these PpRemoveDocInfoType constants.

Constant Description
ppRDIAll Remove all document information.
ppRDIComments Remove comments.
ppRDIContentType Remove content type information.
ppRDIDocumentManagementPolicy Remove document management policy information.
ppRDIDocumentProperties Remove document properties.
ppRDIDocumentServerProperties Remove document server properties.
ppRDIDocumentWorkspace Remove document workspace information.
ppRDIInkAnnotations Remove Ink annotations.
ppRDIPublishPath Remove publication path information.
ppRDIRemovePersonalInformation Remove personal information.
ppRDISlideUpdateInformation Remove slide update information.

Example

The following example shows how to use the RemoveDocumentInformation method to remove comments and Ink annotations from the active presentation.

Public Sub RemoveDocumentInformation_Example()



    ActivePresentation.RemoveDocumentInformation (ppRDIComments + ppRDIInkAnnotations)



End Sub

See also

Presentation Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.