I want my code to run on 10 minute intervals throughout the work day, but stop when the work day is over. Currently my code uses
Application.OnTime Now + TimeValue("00:10:00"), "!Module1.Refresh3"
but it causes problems as it continues to run all night.