Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
how can I self kill my workbook and close the excel application as well. I've tried this code, but it does not work.
Thanks for your help
Thanks for your help
Code:
Sub KillMe()
With ThisWorkbook
Call TitleBarOpen
.Saved = True
.ChangeFileAccess Mode:=xlReadOnly
Kill .FullName
.Close False
End With
With Application
.DisplayAlerts = False
.Quit
End With
End Sub