Make My Mouse Twerk

MattDaddyRamos

New Member
Joined
Sep 11, 2013
Messages
45
Hi All,

I know there are several thread about this topic but all of them are above my experience and I need someone to dumb it down for me. I am trying to write a macro in an Excel workbook that makes my mouse move to prevent my laptop from timing out. I know about the settings to do so, but I am looking for an Excel macro for a specific reason.

Here is what I need, and please forgive me if I sound elementary with this. Just humor me.

  1. I have Excel 2007, I know how to record a macro while I am doing the steps, but what are the steps to write (or paste) a macro without having to record the steps?
  2. I need someone to write the macro without any extra words or blanks for me to fill in. I just want to copy & paste please.
  3. I need it to make the mouse curser move enough to "reset the time out timer thingy".
  4. I need it to repeat every minute and automatically stop (so that it can time out) after X (adjustable amount of time) or X number of times (minutes), whichever is easiest for you.
  5. Name it, word it, build it however, just tell me how to make it work on my sheet and dont leave anything for me to do other than copy & paste PLEASE.

I've given this 3+ hours of trial and error and used the threads on several message boards but I can't seem to get it to work perfectly & keep getting errors. I am a newby at VBA so please explain what is being done so that I may learn from your wisdom.

Thanks in advance for bringing this script down to the toddler level for me. :) And for your patience in doing so. I WILL get this [eventually]!

Matt
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,216,228
Messages
6,129,613
Members
449,520
Latest member
TBFrieds

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