Document.WebPagePreview Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Displays a preview of the current document as it would look if saved as a Web page.

expression .WebPagePreview

expression Required. A variable that represents a Document object.

This example displays the current document as it would appear if saved as a Web page.

ActiveDocument.WebPagePreview
Show: