N
Neil Holden
Hi all gurus, help would be appreciated if you can.
I have an excel workbook set on a scheldule and every night at 2 am it will
open, i need all the cells updating and the full excel workbook to close
after 15 seconds.
The code below asks me to save it, i need all this to be done automatically.
Public Sub Test_Me()
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:15"), "CloseMe"
End Sub
Public Sub CloseMe()
Application.ActiveWorkbook.Close
End Sub
I have an excel workbook set on a scheldule and every night at 2 am it will
open, i need all the cells updating and the full excel workbook to close
after 15 seconds.
The code below asks me to save it, i need all this to be done automatically.
Public Sub Test_Me()
On Error Resume Next
Application.OnTime Now + TimeValue("00:00:15"), "CloseMe"
End Sub
Public Sub CloseMe()
Application.ActiveWorkbook.Close
End Sub