ALT + F11, insert a new module.
VBA: Close without Saving
Sub Auto_Close()
ThisWorkbook.Saved = True
End Sub
VBA: Close with saving.
Sub Auto_Close()
If ThisWorkbook.Saved = False Then
ThisWorkbook.Save
End If
End Sub
VBA: Close without Saving
Sub Auto_Close()
ThisWorkbook.Saved = True
End Sub
VBA: Close with saving.
Sub Auto_Close()
If ThisWorkbook.Saved = False Then
ThisWorkbook.Save
End If
End Sub