Version Information
Version Added: Excel

Syntax

expression.Add(Obj)

expression A variable that represents a ServerViewableItems object.

Parameters

Name Required/Optional Data Type Description
Obj Required Variant The reference to an object. The object can be a reference to sheets or named items (for example, named ranges, charts, tables, and PivotTables). You cannot have both sheets and named items in the same collection.

Return Value
Object

Remarks

If you try to add a mix of both sheets and named items to the collection, an error is returned. The collection can contain references only to sheets, or references only to named items, but not both in the same call.

See also: