Quote Originally Posted by koolsid


Well in that case, Hack, would you like the user not to be able to exit by clicking on 'X' button? Each time the user clicks on the 'X' button, he will be prompted to do a Save As... If Yes then this should help...

vb Code:
  1. Private Sub Workbook_BeforeClose(Cancel As Boolean)
  2.     If Not saveasUI = True Then
  3.         MsgBox "Please use Save As To Save this File"
  4.         Cancel = True
  5.     End If
  6. End Sub

If you don't want the user to exit by clickin on the 'X' button then simply use the above code without the MSGBOX....

Hope this will satisfy the department manager
What is: saveasUI?

Is that a variable I need to declare or Excel will yell at me?