ServerPublishOptions.ExcludePage method (Visio)

Excludes the specified page from being published when the document is published as a VDW file.

Syntax

expression. ExcludePage( _PageNameU_ , _Flags_ )

expression A variable that represents a ServerPublishOptions object.

Parameters

Name Required/Optional Data type Description
PageName Required String The name of the page to exclude.
Flags Required VisLangFlags Specifies whether PageName is local or universal.

Return value

Nothing

Remarks

The Flags parameter must be one of the following VisLangFlags constants.

Constant Value Description
visLangLocal 0 The page name is a local name.
visLangUniversal 1 The page name is a universal name.

Note

Excluding a page does not remove that page from the document—it merely prevents that page from appearing in the browser when the file is published as a VDW file. Because excluded pages remain in the document, they increase the size of the document and, hence, may negatively affect performance. For this reason, it is a good idea to use the Page.Delete method to permanently delete unwanted pages from the document.

Calling the ExcludePage method corresponds to clearing the check box for a page in the Pages list in the Publish Settings dialog box (click the File tab, click Save & Send, click Save to SharePoint, click Web Drawing (*.vdw), click Save As, and then click Options).

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.