• Application.OnTime TimeValue to reference from Cell range

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Application.OnTime TimeValue to reference from Cell range

    • This topic has 0 replies, 1 voice, and was last updated 7 years ago.
    Author
    Topic
    #1773173

    What is the syntax for the OnTime TimeValue if it was to have the Value from a worksheet cell reference,

    Code:
    Application.OnTime TimeValue = Sheets(“ONE”).Range(“A1”).Value, “MACRO_1”

    as opposed to to this syntax

    Code:
    Application.OnTime TimeValue(“11:45:00”), “MACRO_1”

    The error message is,
    Compile error:
    Argument not optional

    value in Cell A1 is in Time format, with seconds.

    Thanks

    Reply To: Application.OnTime TimeValue to reference from Cell range

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: