Why doesn't this code work...
VB Code:
Public Sub Document_Open() Application.OnTime DateAdd("n", 10, Now), SaveAndClose End Sub Private Function SaveAndClose() Me.Close True End Function
It is supposed to close a file 10 minutes after it was opened, but instead the file closes instantly.
Also, why is VBA so lame?![]()




Reply With Quote