Private Sub Workbook_Open()application.ontime now()+timevalue("00:05:00"),"aa" 'aa表示程序End Sub插入模块,在模块中写程序如下sub aa()thisworkbook.close savechanges:=falseend sub =======================原理是一样,主程序关闭就用这句application.quit您对代码一点了解也没有?