Thanks guys.
I put a timer on my code and here is my results:
On a total of 1,304 dates it tooks
1) updatescreen turn on = 01:56
2) updatescreen turn off = 01:46
Ps my computer is not very fast, though!
Sorry
Jindon: you are right sunday = 1 not 7. let me try your solution.
Bookmarks