Jump to content

Program for certain months?


bachguy40

Recommended Posts

Is there a trick to scheduling a program to only run, say, during July through October? I'm not sure if this is possible, as the "If" portion only allows for SPECIFIC date ranges, not something that can be left to repeat every year.

 

As always, any help would be appreciated.

 

Frank

Link to comment

Not to be flip, but this is like writing code that properly calculates a leap year. Divisible by 4, but not by 100, except by 400. You could put that calculation all over your code only to later realize that the first time divisble by 4 doesn't work is 2100. Will your program be running then? :D

 

Just make an If range for July through October of 2010 OR July through October of 2011 or July through October of 2012 OR July through October of 2013, and that should hold you for a while.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...