I had this issue and I resolved it by putting in the Workbook_BeforeClose()
:
ThisWorkbook.saved = true
More Related Contents:
- SumIf using Excel VBA
- Test or check if sheet exists
- Copy from one workbook and paste into another
- How to copy Outlook mail message into excel using VBA or Macros
- For Loop not fully cycling in excel VBA [duplicate]
- Unique Random Numbers using VBA
- Populate unique values into a VBA array from Excel
- Excel VBA App stops spontaneously with message “Code execution has been halted”
- How to add a named sheet at the end of all Excel sheets?
- Closing Excel Application using VBA
- How to clear memory to prevent “out of memory error” in excel vba?
- Delete Row based on Search Key VBA
- How to add a button programmatically in VBA next to some sheet cell data?
- What are the benefits of setting objects to “Nothing”
- How can I kill task manager processes through VBA code?
- VBA: Usage of parentheses for a method
- Fully reference a worksheet by codename
- OnTime for less than 1 second without becoming Unresponsive
- How to send mail when the .Send does not work?
- Get Unicode characters with charcode values greater hex `FFFF`
- How do I click a link on a web page using Excel VBA?
- Ping IP Address with VBA code and return results in Excel
- VBA copy cells value and format
- Create hyperlink to another sheet
- Reducing WithEvent declarations and subs with VBA and ActiveX
- Convert Early Binding VBA to Late Binding VBA : Excel to Outlook Contacts
- How can I loop through a subset of worksheets?
- How to run a string as a command in VBA
- How to Send Email When Computer is Locked?
- VBA, Combine PDFs into one PDF file