+ Reply to Thread
Results 1 to 5 of 5

Run macro on time schedule

  1. #1
    Forum Contributor
    Join Date
    03-28-2017
    Location
    Thailand
    MS-Off Ver
    2013
    Posts
    247

    Run macro on time schedule

    Hi,

    I could find how to run a macro on a time interval, for example every 15 min.
    he first do with a workbook.open script, and then I add it in the script,

    Please Login or Register  to view this content.
    he does my workbook.open run, he does it after 15 min, but then the next time he make a runtime error 9, out of range, on this line : Sheets("collector").Select

    I had ro put it otherwise the macro run on another active sheet

    anyone know how to solve this ?

    Thanks
    Chris

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: Run macro on time schedule

    .
    .
    Make certain the sheet name is correctly entered in the macro code :

    Please Login or Register  to view this content.
    or is it spelled:

    Please Login or Register  to view this content.
    ????

    There is a mistake of some kind in the Sheet name.

  3. #3
    Forum Contributor
    Join Date
    03-28-2017
    Location
    Thailand
    MS-Off Ver
    2013
    Posts
    247

    Re: Run macro on time schedule

    The macro run already many days, yesterday I put the time scheduler and it crash at the second 15 min,

    I can still run manualy even with the timer ..

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: Run macro on time schedule

    I ran your macro here but changed the Sheet name. No problems.

    Must be something else going on with another part of your project ?

    Can you post the workbook for review ?

  5. #5
    Forum Contributor
    Join Date
    03-28-2017
    Location
    Thailand
    MS-Off Ver
    2013
    Posts
    247

    Re: Run macro on time schedule

    hi, suddely it did it, I don't know how it come, but it works now, thanks for your help

+ 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. How to Schedule Outlook Macro to run daily at specific time
    By spriyatam in forum Outlook Formatting & Functions
    Replies: 7
    Last Post: 11-16-2017, 06:05 PM
  2. A macro to auto open and auto close a file with time schedule
    By billj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2015, 06:01 AM
  3. [SOLVED] Macro to list names for a schedule time.
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2014, 10:27 AM
  4. [SOLVED] Needing to combine 2 IF statements in one Cell. Time Schedule minus lunch time
    By cody_o in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 04:10 PM
  5. Schedule Macro at specific day & time?
    By jasonfish11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2012, 03:11 PM
  6. Schedule time to run macro
    By kenmunro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2010, 08:26 AM
  7. Schedule a macro to run at a certain time
    By cmartin2459 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2009, 01:19 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