Partager via


Workbooks.Close Method

Closes the object.

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

Syntax

'Declaration
Sub Close
'Usage
Dim instance As Workbooks

instance.Close()
void Close()

Remarks

Closing a workbook using the Close method doesn't run any Auto_Close macros in the workbook. Use the RunAutoMacros method to run the auto close macros.

See Also

Reference

Workbooks Interface

Workbooks Members

Microsoft.Office.Interop.Excel Namespace