Compartilhar via


ServerViewableItems.DeleteAll Method

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

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub DeleteAll
'Usage
Dim instance As ServerViewableItems

instance.DeleteAll()
void 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.

See Also

Reference

ServerViewableItems Interface

ServerViewableItems Members

Microsoft.Office.Interop.Excel Namespace