Run Macros at Set Intervals in Excel

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 24

  • @DeepakVerma-vb3uu
    @DeepakVerma-vb3uu 2 роки тому

    now i can sleep peacefully.
    you have made my night.
    i was searching for this for 2 days.
    Finally i found the solution of the error while stopping this application.ontime code.
    thank you ❤️

  • @warrenhall1750
    @warrenhall1750 5 років тому +2

    Thanks for the great ideas which extend our VBA skills so well.
    Here is a thought or two, I find it convenient and less confusing to post comments at the end of code. That eliminates the confusion
    while determining if comments precede or follow the code and saves space by reducing lines count, especially as maintenance coders
    use different conventions. Spacing is rarely needed and can be better reserved for logical breaks. Also, it is easier to ignore if no longer
    needed. With just Tab and Quote keystroke(s) your comments are easily aligned and lengthy lines can be continued with the same keys.
    Another freebie: Copy the complete Sub/Function title line to the end of the End Sub/Function line, press Tab, Quote, Ctrl-v (paste)
    yielding "End Sub 'Sub macro_timer()" -- which is helpful when spinning through modules with many Sub's, Function's, etc. since you
    see where you are without needing to page-up, and will see the full argument structure for the code above. Together giving:
    Sub macro_timer()
    ' TeachExcel.com
    interval = Now + TimeValue("00:00:05") ' Set your interval here
    Application.OnTime interval, "my_macro" ' Tells Excel when to next run the macro.
    End Sub 'Sub macro_timer()

    • @TeachExcel
      @TeachExcel  4 роки тому

      Ah, very interesting, thanks for those tips! I definitely am happy to get tips and notes on what works well))

  • @jraj2380
    @jraj2380 4 роки тому +1

    Thank you so much, I was working on this type program since a long period, but was facing problem everytime, now I got it done. Thanks a Ton... :-)

  • @rabsocket1
    @rabsocket1 4 роки тому +1

    Excellent. Great piece of small and efficient code, thank you.

  • @darrylmorgan
    @darrylmorgan 5 років тому +2

    Really Interesting,Helpful Tutorial Thank You Sir :):):)

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому

    Nice one! Thanks for sharing this technique :)) Thumbs up!!

  • @enrikekasijas705
    @enrikekasijas705 5 років тому +1

    I was thinking about that few days ago;) kudos for tutorial on time xD

  • @ankkitsoiwala095
    @ankkitsoiwala095 4 роки тому

    Really Helpful Thank You Very Much

  • @shrinivashegde3830
    @shrinivashegde3830 4 роки тому

    Very useful, Thank you.

  • @robvermeulen9884
    @robvermeulen9884 3 роки тому

    Great job, thank you verry much

  • @ailyntimosa3932
    @ailyntimosa3932 5 років тому

    I love this one! Useful in my multiple macro set up. Is there a way that excel can send a command using ssh, without a need of another program like putty?

    • @TeachExcel
      @TeachExcel  4 роки тому

      I feel like it is better to go through another program, but there is a chance you could do it all through a macro, I'm really not sure.

  • @sevvalsavas6637
    @sevvalsavas6637 4 роки тому

    Hi,
    Can you pls explain how to Automatize data with outlook email using macro?

  • @pgkannan
    @pgkannan 5 років тому

    Excellent one. Help me how to access web portal and generate reports

    • @TeachExcel
      @TeachExcel  4 роки тому

      Thanks) Your question is a pretty big one and the solution depends on a lot of factors, you can ask in our forum on teachexcel and upload a sample file and get help there: www.teachexcel.com/talk/microsoft-office?src=yt

  • @swapnilpatil2445
    @swapnilpatil2445 4 роки тому

    Hehe.....Easy Peasy. Thanks a lot.

  • @Umeshmecconda
    @Umeshmecconda 5 років тому

    When ever I do hyperlink to a cell. It takes much time to open and in some cases it will open can I know the reason?

    • @TeachExcel
      @TeachExcel  4 роки тому

      It depends on many factors, go ahead and upload a sample file and any associated data to the forum www.teachexcel.com/talk/microsoft-office?src=yt and it will be easier to help.

  • @mohiuddinahmed3568
    @mohiuddinahmed3568 3 роки тому

    Please present it clearly