I'm use this code to self-delete the file from my computer and I'm trying to close the excel application. the self-delete works, but excel remains open. What am I doing wrong and how can I fix this?
Code:
ThisWorkbook
.Saved = True
.ChangeFileAccess xlReadOnly
Kill .FullName
.Close 0
end with
application.quit