+ Reply to Thread
Results 1 to 6 of 6

Scheduler Application.OnTime not working

  1. #1
    Registered User
    Join Date
    03-21-2019
    Location
    London, England
    MS-Off Ver
    365 Proplus
    Posts
    6

    Scheduler Application.OnTime not working

    Hi, I hope one of you amazing people can help.

    I have an excel spreadsheet that is constantly open and i want to auto run a macro at a certain time of day. I just can't get it to work when i'm testing it, see below.

    The "TestTime" will be used as part of a bigger macro, but i thought it was visually easier to see if the macro has actually run when i asked it to. I have run the this macro separately via a button, and that seems to work.

    I tried both using Sub and Private Sub.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Scheduler Application.OnTime not working

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    03-21-2019
    Location
    London, England
    MS-Off Ver
    365 Proplus
    Posts
    6

    Re: Scheduler Application.OnTime not working

    Thank you, sadly it is still not working. Is there anything else in specific i need to do, like save the macro in a specific place? Tried Module 1 on the workbook or close the vb window to make it work. Apologies i'm quite rusty at vb, i was only really active writing macros about 10 years ago,

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Scheduler Application.OnTime not working

    This macro works fine.
    I guess that you want to run this macro automatically, so put this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    into Workbook_Open code, then after opening file, macro will start automatically on 15:30:00.

  5. #5
    Registered User
    Join Date
    03-21-2019
    Location
    London, England
    MS-Off Ver
    365 Proplus
    Posts
    6

    Re: Scheduler Application.OnTime not working

    Thank you, i shall try that, i think that will work. would that repeat every day?

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Scheduler Application.OnTime not working

    Do you want to leave open file constantly 24/7?

+ 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 TimeValue not working
    By fabian_76 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2018, 01:14 AM
  2. VBA - Application.Ontime Cancel Fails to Method 'ONTIME' of Object 'Application'
    By LordAzuRa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2016, 03:21 PM
  3. Struggling to get Application.OnTime working with an object
    By XmisterIS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2014, 10:55 AM
  4. Application.OnTime Code is not working
    By loftis01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 11:05 PM
  5. Application.OnTime Not Working for me
    By treymass in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2013, 02:07 PM
  6. [SOLVED] Application.Ontime Procedure Not Working
    By Rob9602324 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2013, 12:04 PM
  7. [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

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