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

Document.RemoveHiddenInformation Method (Visio)

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

Removes hidden information, such as personal information and external data, from a Microsoft Visio document.

Syntax

expression . RemoveHiddenInformation( VisRemoveHiddenInfoItems )

expression An expression that returns a Document object.

Parameters

NameRequired/OptionalData TypeDescription
VisRemoveHiddenInfoItemsRequiredLongThe items to be removed. A combination of one or more enumerated values from the VisRemoveHiddenInfoItems enumeration. See Remarks for possible values.

Return Value

Nothing

Remarks

For the VisRemoveHiddenInfoItems parameter, pass a combination of one or more of the following values from the VisRemoveHiddenInfoItems enumeration, which is declared in the Visio type library.

ConstantValueDescription
visRHIPersonalInfo1Removes personal information.
visRHIDataRecordsets16Removes data recordsets.
visRHIPreview2Removes document preview thumbnail images.
visRHIMasters4Removes unused masters.
visRHIStyles8Removes unused styles, themes, and other display formats.
visRHIValidationRules32Removes data rows not linked to shapes in the drawing.

Calling the RemoveHiddenInformation method is the equivalent of the selecting the options available in the Remove Hidden Information dialog box (click the File tab, click Info, and then click Remove Personal Information).

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the RemoveHiddenInformation method to remove personal information and the preview thumbnail from the active document.

Public Sub RemoveHiddenInformation_Example() 

    ActiveDocument.RemoveHiddenInformation visRHIPersonalInfo + visRHIPreview 

End Sub
© 2018 Microsoft