View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
davesexcel[_70_] davesexcel[_70_] is offline
external usenet poster
 
Posts: 1
Default Disable option save when close excel


Exit without saving
Posted by Mark O'Brien on September 27, 2001 11:53 AM

Insert this code onto the workbook object
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If Me.Saved = False Then Me.Saved = True
End Sub

that should work.


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=522415