Sub 退出系统()
a = MsgBox("确认退出本系统?", vbYesNo + vbQuestion, "退出系统")
If a = 6 Then
Sheets("sheet1").Visible = 2
Application.StatusBar = False
If MsgBox("退出保存数据“是”,退出不保存数据“否”!", 64 + 4) = 6 Then
Application.Quit
ThisWorkbook.Save
'ThisWorkbook.Close
End If
End If
End Sub