+ Reply to Thread
Results 1 to 5 of 5

Auto run every 10 mins and save the file

  1. #1
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Auto run every 10 mins and save the file

    Hi,

    Can anyone tell me how to auto run specific code and save automatically every 10 mins since excel file open please?

    Thanks a lot

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Auto run every 10 mins and save the file

    Add the following Sub, (I've assumed the Sub you want to run is called "myCode", change it to your code name.

    Please Login or Register  to view this content.

    Then at the end of your code that you want to run add:
    Please Login or Register  to view this content.
    Last edited by pjwhitfield; 10-13-2022 at 11:34 AM.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Auto run every 10 mins and save the file

    Hi
    Thanks for your reply. This auto update once and code break next time (that is not doing anything after 10mins)

    Any idea please?

    Thanks a lot

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,388

    Re: Auto run every 10 mins and save the file

    Put both TimerON and TimerOFF behind a button (place everything in a codemodule)
    Or put the TimerOFF behind a workbook_close event


    Please Login or Register  to view this content.
    Last edited by JEC.; 10-13-2022 at 12:47 PM.

  5. #5
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Auto run every 10 mins and save the file

    Quote Originally Posted by jimpatel1993 View Post
    Hi
    Thanks for your reply. This auto update once and code break next time (that is not doing anything after 10mins)

    Any idea please?

    Thanks a lot
    Did you include the
    Please Login or Register  to view this content.
    within your existing code? Is it possible that the logic of your code means its not getting triggered?

+ 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. Replies: 8
    Last Post: 08-21-2020, 02:07 AM
  2. Save, Date, Rename File and Auto Save
    By COURTTROOPER in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2017, 05:16 AM
  3. Replies: 3
    Last Post: 01-22-2016, 01:44 AM
  4. 10.4 mb file takes +15 mins to save
    By CascadeG in forum Excel General
    Replies: 1
    Last Post: 01-20-2016, 02:11 AM
  5. Macro to Auto save a backup copy in a seperate location OR save file with a pop up
    By kdsanderson30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2014, 12:38 PM
  6. Replies: 8
    Last Post: 04-24-2013, 10:16 AM
  7. Excel file is taking long time(almost 3 mins) while Save
    By harshrajpurohit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2013, 06:19 AM

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