ServerViewableItems.DeleteAll Method

Definition

Deletes references to all the objects in the ServerViewableItems collection in the _Workbook.

public:
 void DeleteAll();
public void DeleteAll ();
Public Sub DeleteAll ()

Remarks

If you do not want any of the objects in the ServerViewableItems collection to be viewable on the server, use this method to remove them all at once.

Note: If the ServerViewableItems collection does not contain at least one Object, you will see the message "Unable to Display Specified Named Range or Item" when viewing the _Workbook in Excel Services.

Applies to