ServerViewableItems.Add Method (Excel)

Adds a reference to the ServerViewableItems collection.


expression. Add( _Obj_ )

expression A variable that represents a ServerViewableItems object.


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



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

See also

ServerViewableItems Object