I have written a code to save changes to m excel workbook and close it.
The code works fine except for the close part
The workbook is close but the excel window still there and I still need to close it manually.
Please advice.
this is my code:
i also insert a screenshot of my situation
The code works fine except for the close part
The workbook is close but the excel window still there and I still need to close it manually.
Please advice.
this is my code:
VBA Code:
Sub done()
ThisWorkbook.Close savechanges:=True
Application.Quit
End Sub
i also insert a screenshot of my situation