Automatically Run a Macro Every X Minutes or Hours

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 78

  • @marketdetective
    @marketdetective 4 ปีที่แล้ว +6

    Finally an excel tutorial that works the first time I try it...

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว

      Glad to hear it Sean.

    • @gasparem16
      @gasparem16 4 ปีที่แล้ว

      I was about to post the same thing. I am certainly a VBA noob and this tutorial worked at the first go. For beginners that is awesome.

  • @HansOnProduction1984
    @HansOnProduction1984 2 ปีที่แล้ว

    THANK YOU for this! I had a workbook that needed to auto refresh every 10 seconds and this solved the issues perfectly.

    • @Computergaga
      @Computergaga  2 ปีที่แล้ว

      Fantastic! You're welcome.

  • @بدرالمطيري-ض4ب
    @بدرالمطيري-ض4ب 4 ปีที่แล้ว +1

    Thank you for being the reason I'm smiling, you've just supported me suddenly to improve my excel sheet one mile! a huge step, "Automatically Run a Macro Every 6 Hours " is amazing really amazing wow

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว

      Great to hear. You're welcome.

  • @vladyslavshelukhov1752
    @vladyslavshelukhov1752 3 หลายเดือนก่อน

    TY, very helpful and understandable video, you helped me to deal with thing I fought for hours

  • @NN-jl8dm
    @NN-jl8dm 11 หลายเดือนก่อน

    Thank you , how can i do it once a day ? can it work while the file is closed and stored on Teams for example?

  • @sebastjanhribar266
    @sebastjanhribar266 ปีที่แล้ว

    No other words needed than "Extremely helpful!" Thank you so much.

    • @Computergaga
      @Computergaga  ปีที่แล้ว

      No worries, Sebastjan. Thank you.

  • @twtw785
    @twtw785 2 ปีที่แล้ว +1

    Hello, your video is very useful. Could you please tell me how I could set up a macro to press "CTL + SHIFT+ W" within an excel file every 2 min? Thank you so much. Really need your help. A million thanks in advance.

  • @markhuang368
    @markhuang368 9 หลายเดือนก่อน

    That's exactly what I am looking for. Thank you so much, Alan.

    • @Computergaga
      @Computergaga  9 หลายเดือนก่อน

      You're most welcome! Thank you, Mark.

  • @interestinginvestments1805
    @interestinginvestments1805 ปีที่แล้ว

    gr8 tutorial!!!
    thanks for upload
    I want to run a particular macro daily on workdays for 1hr 13:00 to 14:00 and in that hour want to run it for every 5minutes how to code that?

  • @Slick5923
    @Slick5923 2 ปีที่แล้ว

    QUESTION... Is there a way to make the repeat process start and stop at specific times?! Great Video! Thank you!

  • @sudhindrasukumar2605
    @sudhindrasukumar2605 11 หลายเดือนก่อน

    Fantastic. Very educative. Thank you for the post.

    • @Computergaga
      @Computergaga  11 หลายเดือนก่อน

      Glad you enjoyed it! Thank you.

  • @petro2483
    @petro2483 2 ปีที่แล้ว

    Thanks bro and I am doing real tym data want to make a macro for 15 mins as Average from 1 min data is possible?

  • @tazartighoucha5641
    @tazartighoucha5641 2 ปีที่แล้ว

    thanks for this video. Question, I made a macro to run weekly, but it doesn't work. if I choose for example every 10 minutes,then it works, but for a longer period it does not. maybe you know why. thanks in advance

  • @narendranarasimha7702
    @narendranarasimha7702 ปีที่แล้ว

    Thank you, this program worked for me

  • @lucasf.v.n.4197
    @lucasf.v.n.4197 ปีที่แล้ว

    does it create a thread just for that function?

  • @leoxu6743
    @leoxu6743 4 ปีที่แล้ว +1

    Thank you so much! Very helpful, saved lots of time for me.

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว

      Glad it helped! Thank you Leo.

  • @abhishek1814
    @abhishek1814 4 ปีที่แล้ว

    Thanks for sharing useful video. Is there any way that data is automatically fetched even when system is off and when I run macro, old data is visible? For eg. Currently time is 10am. I have data of 9am and 9 30am. So when I run macro at 10am, can I get data of 9 and 9 30?

  • @ospino1112
    @ospino1112 3 ปีที่แล้ว

    Would this continue to work if I walk away from my computer, or will it stop if the pc sits unnatended for too long?

  • @zakariaahmed1653
    @zakariaahmed1653 ปีที่แล้ว

    Thanh you, that's a good subject, and a very good explain.

  • @abdoudar6579
    @abdoudar6579 2 ปีที่แล้ว

    hi sir can i do the samethinks for a VBA kill file option

  • @mirzabibabazada3562
    @mirzabibabazada3562 5 ปีที่แล้ว +1

    Man you're a lifesaver!

  • @rickkeev4919
    @rickkeev4919 6 ปีที่แล้ว +1

    Great Vid, I can incorporate this into many facets of the workday

    • @Computergaga
      @Computergaga  6 ปีที่แล้ว

      Good to hear. Thank you RickK.

  • @PieterWitbooi-f4x
    @PieterWitbooi-f4x หลายเดือนก่อน

    How can I do it automatically for 2 different Codes/Modules?

  • @dopichannel2646
    @dopichannel2646 2 ปีที่แล้ว

    Nice Tutorial, Sir can u give a tutorial how to make running color without script in excel every x second. Lets say now A1 to be yellow, (B1,C1,D1,E1) to be White. after 5 seconds B1 to be yellow then (A1,C1,D1,E1) to be white. etc.

  • @rameshpatel-ei9kx
    @rameshpatel-ei9kx 5 ปีที่แล้ว

    sir, i am using multiple sheets in excel workbook, when i use this formula in any particular sheet it will also change my data when i am working on another sheet of same workbook. please sir suggest some correction so that it can work in one particular sheet of workbook and not apply to all sheets of workbook.

  • @dttks
    @dttks 3 ปีที่แล้ว

    I Need Some help to set the macros Can you?

  • @prashantpaygonde9864
    @prashantpaygonde9864 5 ปีที่แล้ว +1

    thanks sir
    it work for me and I solved my problem but another problem created due to this is
    Macro is contentiously running for other excel sheet too.
    means if I opened another excel same macro run.
    any provision to stop this ?

    • @prashantpaygonde9864
      @prashantpaygonde9864 5 ปีที่แล้ว

      Solved this thanks

    • @SagarPokarna
      @SagarPokarna 4 ปีที่แล้ว

      @@prashantpaygonde9864 Hi Prashant, I am also facing a similar problem. Can you please guide how to stop the macro from running in other excel files..?

  • @Broadmoore
    @Broadmoore 4 ปีที่แล้ว

    Can this be used for two or more workbooks open? Like, follow those steps for both workbooks and have both of them open?

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว +1

      Sure, I don't see why not.

  • @TheMightyid
    @TheMightyid 5 ปีที่แล้ว

    Are you able to set this to run a specific intervals? Ie every 15 minutes from 7:00am to 11:00pm? - I have an export file that is manually pulled but want to automate the macro to run without having to manually be at the pc to run it? many thanks.

    • @daryntaylor2187
      @daryntaylor2187 5 ปีที่แล้ว +1

      Could you make a conditional that checks the time every 15 minutes and only run your code if the current time falls between 0700 and 2300?

  • @lawrencekerketta0901
    @lawrencekerketta0901 2 ปีที่แล้ว

    Great help, exactly what I was looking for. You've got a new subscriber in me 🤗

    • @Computergaga
      @Computergaga  2 ปีที่แล้ว +1

      Great! Glad it helped.

  • @NotDarshupiro
    @NotDarshupiro 2 ปีที่แล้ว

    Will It Works When Our Pc Is Shut Downed

  • @SuperHanme
    @SuperHanme 4 ปีที่แล้ว

    Thank you. It's very useful.

  • @wayneedmondson1065
    @wayneedmondson1065 6 ปีที่แล้ว +2

    Hi Alan.. great video on a useful topic. Could be designed for any number of handy purposes, such as to time out a worksheet given to a third party.. or just to remind you to get up and stretch your legs every so often.. haha!! Thanks for the lesson and Thumbs up!

  • @itit696
    @itit696 2 ปีที่แล้ว

    Hello ComputerGAGA How Can I make this on PowerPoint ?

    • @Computergaga
      @Computergaga  2 ปีที่แล้ว

      I assume so, as PPT has macros. But I've never done it so I'm making a blind assumption.

  • @razor2k911
    @razor2k911 2 ปีที่แล้ว

    Brilliant!

  • @shantikumarsingh9692
    @shantikumarsingh9692 4 ปีที่แล้ว

    Sir, how to record data from one cell to another consecutive cells of a row for every X minutes or hours automatically ? Please make a vedio on this topic . It will help me a lot to solve my issues.

    • @PnkjKulthe
      @PnkjKulthe 4 ปีที่แล้ว

      r u got solution of this

  • @akhilkashok7274
    @akhilkashok7274 5 ปีที่แล้ว

    Can i give my time in a cell. then i need to run my macro by adding the time given in the cell plus 20 sec.
    Runtimer = Now(can i replace this Now with the time i have given in a particular cell(A1) + TimeValue(00.00.20).

    • @Computergaga
      @Computergaga  5 ปีที่แล้ว

      Sure. As long it will not continue to run though. Only the once 20 seconds after that time.

  • @elyasibrahim5892
    @elyasibrahim5892 3 ปีที่แล้ว

    Mate, does this work only if your workbook remains open? What I mean is can the macro run without opening it.

    • @Computergaga
      @Computergaga  3 ปีที่แล้ว +1

      Yes, the workbook needs to be open. You would need to look at other approaches to run a procedure without the workbook, or even without Excel open.

    • @umarilyas8583
      @umarilyas8583 3 ปีที่แล้ว +2

      Best way is probably making the excelsheet.visible=false and let it run in the background i suppose.

  • @arunavadatta7734
    @arunavadatta7734 3 ปีที่แล้ว +1

    How to do that in google sheets?

  • @yoschimistsu
    @yoschimistsu 2 ปีที่แล้ว

    you are the best !!! belıeve me, the best of Bests

  • @Divya-wv3bs
    @Divya-wv3bs 4 ปีที่แล้ว

    What if we close the sheet? Will the code still run?

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว +1

      No, not unless you put it in the Personal.xlsb. And if you close Excel, not at all.

    • @Divya-wv3bs
      @Divya-wv3bs 4 ปีที่แล้ว

      Thank you so much

  • @sumanchandranath
    @sumanchandranath 4 ปีที่แล้ว

    Is it possible to do in Google also?

    • @Computergaga
      @Computergaga  4 ปีที่แล้ว

      Don't know. I don't use Google Sheets.

  • @alializadeh8195
    @alializadeh8195 2 ปีที่แล้ว

    ممنون

  • @psanthosh95
    @psanthosh95 4 ปีที่แล้ว

    Stop coding please