Workbook.WebPagePreview method (Excel)
Displays a preview of the specified workbook as it would look if saved as a webpage.
expression.WebPagePreview
expression A variable that represents a Workbook object.
This example displays a preview of the first workbook as a webpage.
VB
Workbooks(1).WebPagePreview
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.