How to Create Timer in Excel VBA - Excel VBA Tutorial

This Excel VBA Tutorial explains how to create automatic countdown timer in Excel by using VBA.

Пікірлер: 35

  • @GirishPatel-mg5gd
    @GirishPatel-mg5gd Жыл бұрын

    Many Many thanks for your coding explain

  • @ricro880
    @ricro8804 жыл бұрын

    Many thanks for this example of how to create a timer. My question is how do I get this code replicated in several worksheets in the same workbook so that a timer is available in each worksheet. Thanks for your insights. Rick.

  • @sandeepkumar-cx4or
    @sandeepkumar-cx4or5 жыл бұрын

    thanks sir ji you are great i am your fan keep sharing knowledge

  • @ExcelDestination

    @ExcelDestination

    5 жыл бұрын

    Thanks Sandeep!

  • @SomnoNaut
    @SomnoNaut5 жыл бұрын

    Thanks for the video. Could this work by having a pre-defined interval (90sec) from a field where the time of day is entered, without having to push any buttons. So, it would just check cell A1 and if it is formatted for time, and a time is entered, this timer automatically begins?

  • @H0peAnL0ve
    @H0peAnL0ve3 жыл бұрын

    Great work, many thanks

  • @ExcelDestination

    @ExcelDestination

    3 жыл бұрын

    Many thanks!

  • @fonluangsawat668
    @fonluangsawat6685 жыл бұрын

    thank you

  • @jonathanjordan21
    @jonathanjordan213 жыл бұрын

    i got an error that says Runtime error '424' : Object Required pls help

  • @osprasanz3062
    @osprasanz30624 жыл бұрын

    How to fix the timer at for example 15mins. So i dont have to re enter everyday when i open the sheet

  • @RajibDas-kq2uz
    @RajibDas-kq2uz5 жыл бұрын

    Can i save data in sheet2

  • @sarahele7829
    @sarahele78292 жыл бұрын

    can u give me a copy of the code u type in macro please, because mine is not working even i copied the entire word spelling spaces punctuations and so on but stil not working though. thank u

  • @skmalhinai6336
    @skmalhinai63363 жыл бұрын

    Dear how I can make the timer change the color after 15 seconds? And add sound when the time end?

  • @jowenjamesmendoza6477

    @jowenjamesmendoza6477

    3 жыл бұрын

    i would like to ask this also

  • @cactustom9945
    @cactustom99454 жыл бұрын

    Is it possible to add a beep sound to indicate that the timer has reached zero? So that I won't have to watch it. It would be awesome if it could be done! Thank you for the tutorial.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Yes, it is possible. If you want this to be done in your file, send me email at exceldestination@gmail.com

  • @fajarindra4002
    @fajarindra4002 Жыл бұрын

    thks,

  • @ExcelDestination

    @ExcelDestination

    Жыл бұрын

    Welcome

  • @moso0258
    @moso02585 жыл бұрын

    i want it to start with single button and when it became 0 it stops and became 45

  • @internetnetnet3834
    @internetnetnet3834 Жыл бұрын

    amigo el segundo código me da error porque será ojalá pudieras mandarme la platilla

  • @SanthoshKumar-hk6hv
    @SanthoshKumar-hk6hv4 жыл бұрын

    How to add as msg box after the time laps ?

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    add msgbox()

  • @kumudr
    @kumudr4 жыл бұрын

    Sir, please explain the end time to stop the timer. I tried with your code making it false but it gives error.

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    Without looking at your code, I can say about error. I have written very simple code for this tutorial. May be, you can send me your file. I will look at that and try to respond.

  • @MichaelDavis-zu2ko
    @MichaelDavis-zu2ko2 жыл бұрын

    I'm having trouble stopping the timer. I can do it with a button, if that's the only thing the button does, but if I call the stop_timer sub from another sub, it causes an error, specifically on this line: Application.OnTime Now + TimeValue("00:00:01"), "next_moment", , False

  • @MichaelDavis-zu2ko

    @MichaelDavis-zu2ko

    2 жыл бұрын

    I found a solution, but it's kind of ugly. Instead of using the stop_timer sub to stop the timer, I just tell it to set the timer to =100. Then I added into the next_moment sub under the part about stopping it if time =0, that if time =100, then it should also exit sub. It actually works perfectly now. But still curious.

  • @KuldeepSharma-kr9qy
    @KuldeepSharma-kr9qy2 жыл бұрын

    I found some error like "cannot run the macro 'Book1!next_momet

  • @bholapradhan5187
    @bholapradhan51874 жыл бұрын

    sr how can i download this excel sheet

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    This tutorial is for learning. You can pause tutorial at any point and understand it. If you need file then let me know your email address at EXCELDESTINATION@GMAIL.COM. i will see if I have file, I will share it with you. Thanks again.

  • @djafmess4008
    @djafmess40084 жыл бұрын

    I tried but there is a bug when I click on start. I am using Excel 2010. What's wrong with my code? Sub start_time() Application.OnTime Now + TimeValue("00:00:01"), "next_moment" End Sub Sub end_time() Application.OnTime Now + TimeValue("00:00:01"), , False End Sub Sub next_moment() If Worksheets("sheet1").Range("A2").Value = 0 Then Exit Sub Worksheets("sheet1").Range("A2").Value = Worksheets("sheet1").Range("A2").Value - TimeValue("00:00:01") start_time End Sub

  • @ExcelDestination

    @ExcelDestination

    4 жыл бұрын

    send me your file.......I will correct and reply.

  • @SuperMukeshjha
    @SuperMukeshjha2 жыл бұрын

    Very very bad audio

  • @artistryartistry7239
    @artistryartistry7239 Жыл бұрын

    This audio is terrible.