CustomViews Property

Microsoft Excel Visual Basic

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

For more information about returning a single object from a collection, see Returning an Object from a Collection.

Example

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

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