Abandoning changes in workbook
Hi,
In the Before close event of the workbook I have the following code:
If ThisWorkbook.Saved = False Then abcresponse1 = MsgBox("Do you want
to Save the file?", vbYesNo)
What should be the code for abcresponse1 = vbNo so that all changes
made to the workbook since it was last saved are abandoned and the
workbook is saved in that state?
The workbook before close event has code further down the line that
has to be processed.
Thanks in advance for the help.
Regards,
Raj
|