+ Reply to Thread
Results 1 to 3 of 3

Application OnTime

  1. #1
    Registered User
    Join Date
    04-23-2010
    Location
    Ashford, England
    MS-Off Ver
    Excel 2007
    Posts
    27

    Application OnTime

    I need help with Application.OnTime code. Most of the online examples of code for this application use Now + TimeValue for the ‘earliest time’ definition. In my workbook I have three time values - 'Now', the start time for the event and a countdown timer to the start time.

    My macro is simply going to call for a single refresh of web based input data. So I need an OnTime code that is going to trigger the macro at a specific time in the future. In layman’s terms my ‘OnTime’ will be Now + Countdown time because those two times added together will equal the start time of the event.

    The whole point of the exercise is to have a fully automatic set up so I do not want to have to manually insert any information. As soon as the workbook is connected I need it to set up a single refresh of the web based input data timed for the start time of the event.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Application OnTime

    Your request seems somewhat contradictory
    In the Workbook_Open event
    Please Login or Register  to view this content.
    will run the macro at 4.30 p.m. whereas
    Please Login or Register  to view this content.

    will run the macro 16.5 hours after the workbook is opened.[/CODE]

    It's not quite clear (at least to me) which one you are after.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    VoG™
    Guest

    Re: Application OnTime

    Cross posted http://www.mrexcel.com/forum/showthread.php?t=579552

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1