What is the syntax to close workbook?

Workbooks("<workbook name>").Close saveChanges:=<true or false>
'example
Workbooks("example.xlsm").Close saveChanges:=true

 

 

Advertisements