我在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档就会被开启。
可否有人能指点一下小弟原因,或是这样写错在哪,
万分感谢