我在A檔案寫入
Private Sub workbook_open()
Call AAAsave
End Sub
Private Sub AAASsave()
Application.OnTime Now + TimeValue("00:00:10"), "ThisWorkBook.AAA"
End Sub
Private Sub AAA()
ThisWorkbook.save
Call AAAsave
End Sub
我在B檔寫入
Private Sub workbook_open()
Call BBBsave
End Sub
Private Sub BBBsave()
Application.OnTime Now + TimeValue("00:00:15"), "ThisWorkBook.BBB"
End Sub
Private Sub BBB()
ThisWorkbook.save
Call BBBsave
End Sub
但現在發生一個問題,兩個檔案一起打開後,我關掉B檔案後,可是當A檔案自動存檔時,
B檔案就會被開啟。我關掉A檔後,當B檔案自動儲存開始時,關掉的A檔就會被開啟。
可否有人能指點一下小弟原因,或是這樣寫錯在哪,
萬分感謝