View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
carlo carlo is offline
external usenet poster
 
Posts: 367
Default workbook before close

Hi harold

basically this structure should help you

-------------------------------------------------------------
Private Sub Workbook_BeforeClose(Cancel As Boolean)

If MsgBox("bla", vbYesNo) = vbNo Then
Cancel = True
End If

End Sub
------------------------------------------------------------

just change the msgbox to your wishes.

hth

Carlo