Skip to content
Home
Tutorials
Real-World Examples
Save and close an Excel workbook
Run Code
Parameters
Macro Title:
Save Changes Option:
True
False
Comment:
'
Sub
Save_and_Close_Workbook
()
'
save and close a workbook
ThisWorkbook.Close savechanges:=
True
End Sub