cresbydotcom
Technical User
- May 22, 2006
- 234
OK this code will start IE before dinner time but how do you close that same window when the eating stops?
Just to take temptation way from the guys - if they are smart enough they will find how to get round it.
So what is needed in the unload subroutine?
FWIW I have found various FAQ's and threads but they don't seem to apply in this instance.
Just to take temptation way from the guys - if they are smart enough they will find how to get round it.
Code:
Public closer As Long
Private Sub Workbook_Open()
Application.OnTime TimeValue("12:20:00"), "load_expl"
End Sub
Sub load_expl()
closer = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE")
Application.OnTime TimeValue("13:10:00"), "unload_expl"
End Sub
Sub unload_expl()
End Sub
So what is needed in the unload subroutine?
FWIW I have found various FAQ's and threads but they don't seem to apply in this instance.