原创

Excel退出时不提示保存

vba运行以下命令:

Sub Caption_Macro()     

       'Changes the Caption property of the first window 

       Windows(1).Caption = "Window 1"    

       'Setting that the workbook has changed.    

       ActiveWorkbook.Saved = False    

 End Sub    


正文到此结束
本文目录