ServerViewableItems.Add Method (Excel)
Adds a reference to the ServerViewableItems collection.
expression A variable that represents a ServerViewableItems object.
|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.|
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.