Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
Code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
Dim sh As Worksheet
Application.DisplayAlerts = False
For Each sh In ThisWorkbook.Sheets
Select Case sh.Name
Case "Exhibit " & """I"" ", "page 2"
Call deleteWS
End Select
Next
Application.DisplayAlerts = True
ThisWorkbook.Saved = True
Application.ActiveWorkbook.Close
Application.Quit
End Sub
Code:
Application.Quit
I am running 2010 Office University version, if that helps. Thank You.