Consulting

Results 1 to 3 of 3

Thread: dynamic reminder

  1. #1
    VBAX Regular
    Joined
    Jul 2007
    Posts
    15
    Location

    dynamic reminder

    hi all

    in sheet ("main")range("a1"). i put a dynamic time like(13:30:00)for example
    i need a code that when the current time now() = ("a1").value to run msgbox code

    is it possible

    thanks alot

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This should do it. It checks every 10 seconds

    Sub CheckTime()
        If Time >= Worksheets("Main").Range("A1").Value Then
        'run macro
        Else
        Application.OnTime Time + TimeSerial(0, 0, 10), "CheckTime"
        End If
    End Sub
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jul 2007
    Posts
    15
    Location
    XLd thank you very much it is great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •