Save and close an Excel workbook

How to save and close a workbook using VBA

METHOD 1. Save and close a workbook using VBA

VBA

Sub Save_and_Close_Workbook()
'save and close a workbook

ThisWorkbook.Close savechanges:=True

End Sub

ADDITIONAL NOTES
Note 1: This code will save and close the workbook in which the VBA code is written in.

Explanation about how to save and close a workbook using VBA

EXPLANATION

EXPLANATION
This tutorial explains and provides step by step instructions on how to save and close a workbook using VBA.

The VBA code that is provided in this tutorial will save and close a workbook in which the VBA code is written in.

RELATED TOPICS

Related Topic Description Related Topic and Description
How to open a single workbook using Excel, VBA and Shortcut methods
How to close a single workbook using Excel, VBA and Shortcut methods
How to save an Excel workbook without being prompted using VBA
How to open a single workbook as Read-Only using Excel and VBA methods
How to save a workbook using Excel, VBA and Shortcut methods