Inactivity Timer

LSM1604

New Member
Joined
Jan 8, 2010
Messages
49
Hey all,

I was wondering if anyone could help me with an inactivity timer within my workbook? I already have some code which runs when the workbook is closed:

Code:
module1.SaveClose_Click

What I would like is the aforementioned procedure to run when the workbook is inactive for 20 minutes. This could be done by either of the following:
  • The mouse has not been moved.
  • There has not been a cell selection change or a macro has not run.

Many thanks,
LSM1604
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi Warship,

Thanks for the reply, one problem though, I don't understand the information on the link you posted. Where do I put the code? How does the timer start upon cell selection or mouse movement?

Thanks,
LSM1604
 
Upvote 0
You may also want to take a look at the last post HERE by Tom Schreiner which caters for all mouse and keyboard inactivity.
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top