want to auto-run a macro every 5 minutes but not lock up com

jleslie48

New Member
Joined
Mar 26, 2002
Messages
16
it seems simple enough, but I can't seem to locate any info on this. I want to run a
macro, say "foo", every 5 minutes. if the
macro is not running, I would like to be able
to shrink excel, work on the spreadsheet, basically do anything I want. Any Ideas?

Thanks in Advance,

Leslie
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
There may be an easier way (possibly using DoEvents) but I would say that this is easily done by making a quick Visual Basic exe that controls Excel.

You can link to the open workbook every 5 minutes and run the macro quite easily.
 
Upvote 0
Have a look at the Ontime method in VBA help. There are examples which show you how to do this. If you need any help with it then please repost.

regards,
Dan
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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