+ Reply to Thread
Results 1 to 3 of 3

Application.OnTime, Not Start, EveryTime ?

  1. #1
    Forum Contributor
    Join Date
    08-28-2012
    Location
    nz
    MS-Off Ver
    Excel 2010
    Posts
    125

    Lightbulb Application.OnTime, Not Start, EveryTime ?

    Hi Gurus

    Have 7 Macros waiting to run "Application.OnTime TimeValue(Range("$X$9").Text), "WebPull"

    Sometimes they run
    Sometimes they don't

    Looking on the Net came across

    "if meanwhile another procedure is being executed and Excel is not in ready mode within 20 seconds, this procedure will not run."

    "This means that the time when the procedure is to run (EarliestTime argument) should be assigned to a variable"

    Trouble is me not know how to set up variables

    Any assistance greatly appreciated as always you da men

    Mike : )


    Please Login or Register  to view this content.
    Last edited by keen2xl; 10-26-2013 at 03:08 PM.

  2. #2
    Forum Contributor
    Join Date
    08-28-2012
    Location
    nz
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Application.OnTime, Not Start, EveryTime ?

    This is a sad face : (

  3. #3
    Forum Contributor
    Join Date
    08-28-2012
    Location
    nz
    MS-Off Ver
    Excel 2010
    Posts
    125

    Re: Application.OnTime, Not Start, EveryTime ?

    Ok Figured it out

    I had time set time to be read by Application on times as 22:00
    to fit it into the cell it was in.

    Format Cells / Custom / h:mm

    Which looks the same Format as 24hr but smaller

    But for Application on times to read the Time Format when being Called by another Macro

    it needs tot be set as 22:22:00

    Format Cells / Time / 13:30:55 (4th one down)



    Still don't know why it still worked every time 100's of times when actually clicking macro directly containing Application on times talk about misleading ?????



    Sheet attached, i was prepping for Forum for testing, as i said i would, but figured it out while doing that and post by

    westconn1-Pete VB Forums saying he did it and "i would suspect the timevalue from cell may not give the required result"


    So Cheers Pete you da man : )


    So simple but not to the novice "Me" : )



    Never give up : )


    Mike
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Application.ontime
    By hatrickx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2013, 09:18 PM
  2. [SOLVED] Application.OnTime VBA
    By Anka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2013, 05:41 PM
  3. [SOLVED] Help with Application.OnTime (was Application.Wait Now)
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2012, 01:18 PM
  4. Application.OnTime
    By albatross32 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-17-2011, 03:15 PM
  5. application.ontime
    By rick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2005, 02:05 PM

Tags for this Thread

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