During workbook close, how to avoid excel save, don't save pop-up.
We already fool the excel by telling it, we saved.. But still the pop-up is throwing.
It is not coming for all excels we have. I have a .xlsm file, only for which it is coming. Sorry that I can't able to share my program.
Following is my workbook close event in vba.
Private Sub App_WorkbookBeforeClose(ByVal wb As Excel.Workbook, Cancel As Boolean)
My code
wb.saved = True
End Sub
I also tried Activeworkbook.Saved = True, Thisworkbook.Saved = True, nothing is working fine..
Please leave your inputs to solve this.
Bookmarks