Skip to content
Home
Tutorials
Real-World Examples
Close an Excel workbook
Run Code
Parameters
Macro Title:
Comment:
'
Sub
Close_a_Workbook
()
'
close a workbook where this VBA code is written
ThisWorkbook.Close
End Sub