Sub sleep(time) Dim newHour, newMinute, newSecond, waitTime newHour = Hour(Now()) newMinute = Minute(Now()) newSecond = Second(Now()) + time waitTime = TimeSerial(newHour, newMinute, newSecond) Application.Wait waitTimeEnd Sub