vbYesNoCancel
Posted by Ed on July 23, 2001 12:05 PM
Hello, Would anyone know how to close a workbook with
clicking the No button on a msgbox. I've got the following
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim Check As Integer
Check = Msgbox("Do you want to save the changes")
If Check = vbCancel Then
Cancel = True
Else
If Check = vbYes Then
Blah,Blah,Blah
I need a line of code that by clicking on No" it closes
the the file.
Thanks in advance
Ed