ServerViewableItems.Add Method (Excel)
Adds a reference to the ServerViewableItems collection.
Version Information
Version Added: Excel 2007
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 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.