Edit

Share via


ServerViewableItems.Add(Object) Method

Definition

Adds a reference to the ServerViewableItems collection.

public:
 System::Object ^ Add(System::Object ^ Obj);
public object Add (object Obj);
Public Function Add (Obj As Object) As Object

Parameters

Obj
Object

Required ObjectObj 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.

Returns

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.

Applies to