I have 2 codes one which is beforesave and another beforeclose
Part of the beforesave code is
Private Sub WORKBOOK_BEFORESAVE(ByVal SAVEASUI As Boolean, Cancel As Boolean)
msg = MsgBox("Is this first week of the month, clicking YES will update Leave allowance links", vbYesNo, "Saving Incite")
If msg = vbYes Then ............
But I also have a beforeclose
This code hides some sheets, so therefore has a me.save command....
This of course then brings up the VB message above when it's not required, can anyone think of a bright idea that would stop it ?
Thank you in advance
Part of the beforesave code is
Private Sub WORKBOOK_BEFORESAVE(ByVal SAVEASUI As Boolean, Cancel As Boolean)
msg = MsgBox("Is this first week of the month, clicking YES will update Leave allowance links", vbYesNo, "Saving Incite")
If msg = vbYes Then ............
But I also have a beforeclose
This code hides some sheets, so therefore has a me.save command....
This of course then brings up the VB message above when it's not required, can anyone think of a bright idea that would stop it ?
Thank you in advance