ServerViewableItems.DeleteAll Method (Excel)

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

Version Information

Version Added: Excel 2007

Syntax

expression .DeleteAll

expression A variable that represents a ServerViewableItems object.

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.

See Also

Concepts

ServerViewableItems Object

ServerViewableItems Object Members