WaitUntil Statement

Interrupts the program execution until the time specified.

தொடரமைப்பு:

WaitUntil Time

அளவுருக்கள்:

Time: A Date and Time expression that contains the date and time to wait before the program is executed.

பிழையான குறியீடுகள்:

5 செல்லாத செயல்முறை அழைப்பு

எடுத்துக்காட்டு:


        REM Wait until 6:00 PM then call MyMacro.
        REM If after 6:00 PM, exit.
        Sub ExampleWaitUntil
        Dim vTimeschedule As Double
            vTimeSchedule = Date() + TimeValue("18:00:00")
            If vTimeSchedule < Now() Then Exit Sub
            WaitUntil vTimeSchedule
            Call MyMacro
        End Sub
    

Please support us!