+ Reply to Thread
Results 1 to 5 of 5

i want a macro to run on specific days and times

  1. #1
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    i want a macro to run on specific days and times

    i want to run the macro called "collet" in these days and times
    Monday at 11:00 PM
    Wednesday at 7:00 AM
    Friday at 3:00 PM

    is there a way to program this? thank you

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: i want a macro to run on specific days and times

    You probably want to use application.ontime this line of code below runs the macro "my_Procedure" at 5pm:

    Please Login or Register  to view this content.
    you can use if statements to determine whether that line gets run, thereby controlling the day.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: i want a macro to run on specific days and times

    Try something like this
    HTML Code: 
    excel should be running
    Good luck,
    Last edited by mokht; 06-10-2015 at 07:46 PM.

  4. #4
    Forum Contributor
    Join Date
    01-27-2015
    Location
    New hampshire
    MS-Off Ver
    excel 2013
    Posts
    143

    Re: i want a macro to run on specific days and times

    thanks but I could not get this to work..... I will try to be more clear. I want it so Monday at 11 pm I want the macro to run and the Wednesday at 7 am I want the macro to run and Friday at 3pm I want it to run.. not everyday at these times... thank you

  5. #5
    Registered User
    Join Date
    03-16-2015
    Location
    Egypt
    MS-Off Ver
    2010
    Posts
    51

    Re: i want a macro to run on specific days and times

    the macro runs 3 times based on dates and times on code
    it runs at : 2015, 6, 10 , 2015, 6, 20 and 2015, 6, 25 not everyday

    Regards

+ 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. Formulas to Add shift penalty rates to specific times & days
    By sman1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-26-2020, 11:24 PM
  2. How to run the macro for specific times?
    By drhgsangani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2013, 01:16 AM
  3. [SOLVED] Run macro x no. of times if file closed for x no. of days.
    By JonathanP in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2012, 05:44 AM
  4. Need to count records for specific days and times
    By cdholt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2011, 08:39 PM
  5. Macro Loop – Find Specific Times, Extract Date, Average Values of Times
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-25-2010, 02:50 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