excel - Running macros at scheduled time when pc is locked -


background: windows 7, office 2010

i have 2 macros running buttons, 1 macro calculates , extracts data , other macro selects specific range , sends email specified email.

may know how can 2 macros run @ scheduled time when pc locked - i.e. (on 'switch user' screen)?

thank , sincerely appreciate can get!

sub tempo()     tps = + timevalue("00:01:00") 'your refresh rate     application.ontime tps, "message_ctrl" end sub  sub message_ctrl()      call module1.test  'your macro      call tempo 'this relaunch schedule when test() finished end sub 

here exemple refresh every minutes, can define day or anything. need start once tempo() or message_ctrl() start cycle. maybe @ workbook_open. key here application.ontime function.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -