Hi,
I was sure I posted this yesterday but can't find it in the forum.
Anyway I need to auto close a workbook afetr 15 minutes. Its read only to the users.
I found some code on the web to close the book after 15 minutes. What I need your help with is ..
1 When the workbook is opened a pop up message to tell the user it will close in 15mins
2 at 14mins tell them it will close in 1 min.
Here is the code I'm using to close the workbook.
Thanks
Brian
I was sure I posted this yesterday but can't find it in the forum.
Anyway I need to auto close a workbook afetr 15 minutes. Its read only to the users.
I found some code on the web to close the book after 15 minutes. What I need your help with is ..
1 When the workbook is opened a pop up message to tell the user it will close in 15mins
2 at 14mins tell them it will close in 1 min.
Here is the code I'm using to close the workbook.
Code:
Const idleTime = 15 'seconds
Dim Start
Sub StartTimer()
Start = Timer
Do While Timer < Start + idleTime
DoEvents
Loop
Application.DisplayAlerts = False
ActiveWorkbook.Close True
Application.DisplayAlerts = True
End Sub
Brian
Last edited by a moderator: