Need code to run macro in excel every 15 minutes, but only if user has File open -


i'm working on project update production notes in manufacturing schedule. i've macro written pull in data manufacturing schedule, need execute macro in file automaticaly every 15 minutes, but while user has manufacturing schedule open. i've tried using "application.ontime" specific times, seems open manufacturing schdule if closed . i'm pretty new vba assistance code appreciated. code i'm using pretty basic:

private sub workbook_open()  'application.ontime timevalue("08:00:30"), "open_sfcdb" 'application.ontime timevalue("08:16:30"), "open_sfcdb" 'application.ontime timevalue("08:32:30"), "open_sfcdb" 'application.ontime timevalue("08:48:30"), "open_sfcdb" 'application.ontime timevalue("09:04:30"), "open_sfcdb" ......etc, etc 24 hr period  'end sub` 

you might want put application.ontime procedure in second workbook. have check if manufacturing schedule open when runs.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -