Sub Tempo()
Application.ScreenUpdating = False
ActiveWorkbook.RefreshAll
Application.OnTime TimeValue("7:02:00"), "Tempo"
.......
Application.OnTime TimeValue("18:32:00"), "Tempo"
ActiveWindow.WindowState = xlMinimized
End Sub
ActiveWindow.WindowState = xlMinimized
ActiveWindow.WindowState = xlNormal
ActiveWindow.WindowState = xlMaximized