I have a large workbook with view a lot of only pages. What i would like to do is when a sheet is selected it wil display it for 30 seconds then return to the home sheet. I saw a inactivity timmer but its far to complex for me. Just somthing simple will do fine.

Timer to display worksheet for only 30 seconds
-
-
-
-
Re: Timmer to display worksheet for only 30 seconds
This is close, But it freezes my userform until time runs out and i cant scroll down the page to read anything.
-
-
Re: Timmer to display worksheet for only 30 seconds
how about autoscroll?
-
Re: Timmer to display worksheet for only 30 seconds
I may have misguided you. Im sorry. I would like the userform to hide and then let the user have free range of the page. Then when time is up return to the home page.
-
Re: Timmer to display worksheet for only 30 seconds
Sorry I cannot see a way to do this. The best I can suggest is to have the macro stamp the Now time to a cell and then compare the time on every event on the page after that. This won't force thirty seconds, but it means if anything is done after thirty seconds you will be returned to the home page?
Like you mentioned there are timers out there but they involve addins.
Hopefully someone else here has a better solution for you. -
Re: Timmer to display worksheet for only 30 seconds
Thanks for your help. Cheers
-
Re: Timmer to display worksheet for only 30 seconds
Im not sure why you would want to do this but anyway place the following code in a module:
Code
Display MorePublic dTime As Date Sub StartTimer() dTime = Now + TimeValue("00:00:30") Application.OnTime dTime, "ReturnHome" End Sub Sub StopTimer() On Error Resume Next Application.OnTime dTime, "ReturnHome", , False On Error GoTo 0 End Sub Sub ReturnHome() On Error Resume Next Application.EnableEvents = False Sheet1.Activate Application.EnableEvents = True On Error GoTo 0 End Sub
In the workbook object:
-
Re: Timer to display worksheet for only 30 seconds
Thanks for that Reafidy but still not quite right. Let me explain a tad better. When my workbook opens a user logs in. There are many users but only 2 types. "Employee's" and "Managers". If an employee logs in they are brought to a task sheet for data entry. They can not see the sheets they have entered data to. I have installed a "View Only" command button on there task sheet that loads all the relavant sheets with submited data for them to view. but because i dont want to add a return button to every sheet in the book is why i want to allow them x amount of time to view a sheet before returning them to there task sheet. My book is hundreds of sheets. Thanks for all your help
-
Re: Timer to display worksheet for only 30 seconds
I dont think restricting the time is a good idea, there are all sorts of problems that could arise from this. Why not add the command button "Return Home" to the worksheet at runtime? Then remove it onceit is clicked or the sheet is manually changed.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!