hi guys,
I found the following code in this forum, to disable the "X", workbook close button.
Code
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If CloseMode = 0 Then Cancel = True
MsgBox "Please go to File > Close to close this file"
End Sub
The thing is that when I click the "X",the message box appear, but as soon as I acknowledge the message, the book closes anyways. Please would someone have a look to see what is missing here?...Thanx to each and everyone...