Item Method (CustomViews Collection)

Applies To

CustomViews collection object.

Description

Returns a single CustomView object from a CustomViews collection.

Syntax

expression.Item(ViewName)

expression Required. An expression that returns a CustomViews object.

ViewName Required Variant. The name or index number of the custom view.

Example

This example includes print settings in the custom view named "Current Inventory."

ThisWorkbook.CustomViews.Item("Current Inventory").PrintSettings = True