CustomViews Property [Excel 2003 VBA Language Reference]

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

Applies to | Workbook Object