Workbook.CustomViews Property (Excel)

Office 2013 and later

Contribute to this content

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

Returns a CustomViews collection that represents all the custom views for the workbook.

expression .CustomViews

expression A variable that represents a Workbook object.

This example creates a new custom view named "Summary" in the active workbook.

ActiveWorkbook.CustomViews.Add "Summary", True, True