When you close Excel and edit your VBA code, it does not suggest you save. I just wrote 300 lines of code and it was not saved.
How to make it prompt when closing?
He should have suggested you save. Make sure SetWarnings are not installed somewhere in your code
You can change SetWarnings settings as described by Kevin.
But I usually do all my excel autosave projects on exit.
, ThisWorbook:
:
Private Sub Workbook_BeforeClose(Cancel As Boolean) ThisWorkbook.Close SaveChanges:=True End Sub
, , , , , !
Add before executing a line of code:
response(msgbox("Do you want to save this copy of your file?",VByesNo,"") if response =VBYes, then line of code to save Else msgbox "File was not saved",vbOK,"" Exit Sub End if
Source: https://habr.com/ru/post/1756038/More articles:How to implement a custom delimited container in Flex 4? - flex4Globe with rpm python module? - pythonHow to get atomic value between element nodes using XPath - javaCheck if the application works with PackageMaker - macosJQuery colorbox: initialize gallery by click - jqueryHow does an expired timer event compete with high priority threads? - multithreadingReusing an XML Element from Another File - xmldetermine list type in C # - .net-3.5Reject GET method on j_security_check - javaListIndex текущего значения combobox без выделения - vbaAll Articles