java - how to execute a vba macro every 30 minutes automatically? -


i'm working on project send alert notifications mailing list. i've excel file vba macro permit updating datatbase. need execute macro in file automatically every 30 minutes without having open file. i've been told write macro in separate program, don't know how it.

excel vba dom has nice feature called application.ontime. can schedule macro run @ time. run macro every 15 min, schedule 15 min in future on application startup, , schedule 15 min in future everytime macro runs.

from website: http://www.ozgrid.com/excel/run-macro-on-time.htm

example:

private sub workbook_open()   application.ontime + timevalue("00:15:00"), "mymacro" end sub 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -