Timer in Excel VBA

Поділитися
Вставка
  • Опубліковано 2 лют 2018
  • Hello Friends,
    In this video you will learn how to create a timer in Excel by using VBA.
    Please download this excel file from below given link:
    drive.google.com/open?id=1TPO...
    Watch the best info-graphics and dynamic charts from below link:
    • Dynamic Graphs
    Learn and free download best excel Dashboard template:
    • Excel Dashboards
    Learn Step by Step VBA:
    • VBA Tutorial
    Facebook:
    / pkan-excel-expert-9748...
    Telegram:
    t.me/joinchat/AAAAAE2OnviiEk5...
    Twitter:
    / priyendra_kumar
    Send me your queries on telegram:
    @PKanExcelExpert

КОМЕНТАРІ • 98

  • @SELIGAMANU
    @SELIGAMANU 4 роки тому +3

    Não entendi nada do que você falou, mas a explicação foi fantástica! Hahaha obrigado Microsoft por manter a linguagem do VBA padronizada, procurei tanto um video assim aqui no brasil e não achei, você supriu minhas necessidades, muito obrigado!

  • @lorendayanarodriguez6007
    @lorendayanarodriguez6007 2 роки тому

    Gracias, muy fácil y practico. Pase horas buscando como hacer el cronometro, muchas gracias.

  • @Benson291
    @Benson291 6 років тому

    Excellent video. Thank you very much to explaining how the component works and the advantages of doevents.

  • @jaumefp
    @jaumefp 6 років тому

    I thought that the vba code was more complicated!! Very nice and useful

  • @joses.pacheco3069
    @joses.pacheco3069 6 років тому

    Excelente vídeo aula. Show!

    • @PKAnExcelExpert
      @PKAnExcelExpert  6 років тому

      Obrigado por assistir o vídeo e compartilhar seus valiosos comentários. Compartilhe os vídeos com seus amigos e colegas.

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

    Dear Sir, thank you for lesson which I wanted to learn, which I achieved the goal.

  • @TheDavineves
    @TheDavineves 6 років тому +2

    Nice, It was really good. Thanks for Sharing

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

    Hi,
    Nice Video.
    I have a query. Say if I had to import the live stock price of Infosys to cell B2 of excel and upon each refresh, the new value should be updated in the next cell say B3, B4, B5 .....and so on, instead of erasing and updating the new value in cell B2 itself. so upon each refresh it should leave the previous trail of prices as it is and should be updated in the next cell. I did it 10 yrs ago with Reset, count and Iterate options but do not remember it now. May I request if you would be able to guide me on this?
    Thanks in advance.
    Regards,
    Senthil

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

    Very helpfull. Thank so much. Happy new year and good luck in every think you do.

  • @cristianerodrigues8093
    @cristianerodrigues8093 6 років тому

    Very good hello, this exercise was very useful for me.

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

    Working perfectly thanks

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

    Hello PK. Thank you fro posting this. It works really well, but the timer continues to run in the background when you push stop. Is there a way to stop the timer from advancing as more of a pause function?

  • @daveschutz3294
    @daveschutz3294 6 років тому +1

    Dear PK, another good job. I know that since it is using NOW as the baseline from the start, it will need more logic, but the Stop button is not really a stop... "it is a stop showing the counter change" button. What is the logic to have Stop actually Stop and or Pause the timer?
    thanks,
    Dave

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

    Thank you so much, can I repeat the code to make muliple timers in one sheet so I can keep track of my activities?

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

    Awesome you are a expert too good

  • @huyentrang5724
    @huyentrang5724 2 роки тому +1

    Thnk you PK! It is very interesting.

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

    Can you do a multiple timer in one sheet ? that display multiple running timer

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

    hi. Thanks. How to do macros when opened worksheet timer started and when timer end worksheet closed automatly

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

    me shoch raha tha ki ....maths table ko easily yaad rakh ne ke liye.......
    muje ye trick jan ni he......
    or children ko .......bohat easliy math tables ko dekh sake or shikh sake.......
    ab aap he sab........
    please help this trick .....
    india ko aap ki is trick ka intjar rahega ......
    or muje bhi....
    ☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️☝️

  • @ghadeermath2066
    @ghadeermath2066 6 років тому

    thanks can i make same timer in powerpoint

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

    Hey sir, i have a Question i have to make an exel timer vor a School project which Counts down from 0:05:00 how can i do that i would love to do it with a VBA program but i dont know how. can you help me pls?

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

    Thank you

  • @stevebell9050
    @stevebell9050 6 років тому +14

    Your timer is still running in the background when pushing stop.

    • @Premiercoaching
      @Premiercoaching 6 років тому +1

      Did you get a solution to this?

    • @MikeDerUnwissende2
      @MikeDerUnwissende2 3 роки тому +3

      ​@@Premiercoaching I know that your comment or your question is two years old. I am a hobby VB Excel programmer and I just came across the video.
      The process should be changed a bit:
      1. In cell P5 a new value (optional): "Total time:"
      2. Cell Q5 receives the number zero (the total time value).
      3. Cell D7 no longer has to refer to the difference time but to the total time cell:
      =if( q5=0; Q4; Q4+Q5)
      (this formula will check, if the overall time sum is 0; if true use the current difference time at first run, otherwise use difference time and add overall time)
      I don't tried this directly in Excel, so please be patient if any error occurs :)
      4. The start macro must first be updated with the start time and now information like in the video shown.
      5. The stop macro must also be adjusted. When you press stop, the GoTo loop must be ended (which it currently does). Then the current difference time (Q4) must be added to the total time (Q5). To do this, it makes sense to use a variable in the macro. After that, cell Q2 can be zeroed in this context (if you don't want to do this in the start macro), like:
      cells(5,17).value = cells(5,17).value + cells(4,17).value
      6. In the reset macro the cells Q2 to Q5 are given the number zero, since we have to represent a time format, maybe like this one (first you have to dim the MySubTimer Variable as an integer):
      For MySubTimer = 2 To 5
      Cells(MySubTimer, 17).Value = 0
      Next MySubTimer
      Also all modules should take use of "option explicit", when you're using variables in your macro.
      Maybe this helps someone.

  • @adriantroydeleon3010
    @adriantroydeleon3010 2 роки тому

    Thank you! :)

  • @shaukatsamad2510
    @shaukatsamad2510 6 років тому +1

    Welldon Sir, but unfortunately my marco sheet is not working properly ... so I can't do it counter.......... is there any way that I can make counter without marco.... I'm waiting for yr reply

    • @PKAnExcelExpert
      @PKAnExcelExpert  6 років тому +1

      Thanks for your valuable feedback. Yes we can create timer without macro but We can not show the live change without macro or need to press F9 to see the counter

  • @juanjacobs6327
    @juanjacobs6327 2 роки тому

    Thank you it was very incisive. Is it possible to add a function that includes days month and years along with hours minutes and days and also can i insert my own start date and time
    I want to create a timer that shows the amount of time that has passed since we last reset the clock for example.

  • @shadow_gaming_sk
    @shadow_gaming_sk 6 років тому

    excellent

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

    Useful...

  • @richcanelon4041
    @richcanelon4041 Рік тому

    PK, Thank you so much for posting this. You are awesome! One question: How can you have the timer run in multiple different sheets or can the modules for entire workbook when you add a new sheet?

    • @PKAnExcelExpert
      @PKAnExcelExpert  Рік тому

      Good question! I will try to create a video on this topic.

  • @lostinmelody1714
    @lostinmelody1714 6 років тому

    Can you please help me to make it into an offline Android app

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

    can u do a tutorial where there is a start time, end time, time left, and when the time finished based on the start time and end time there will be a note of expired, but the time will still keep running to have it as overdue time? any code where I can use specifically?

  • @shatadalgnguly434
    @shatadalgnguly434 6 років тому

    Nice sir

  • @ashokkandukury2870
    @ashokkandukury2870 2 роки тому

    Appreciated sir,
    Can we do it without VBA codes

  • @homelearning547
    @homelearning547 2 роки тому +1

    Thanks for the video. is it possible to display the timer in a Textbox of a userform?

    • @PKAnExcelExpert
      @PKAnExcelExpert  2 роки тому +1

      Great suggestion! I will try to create a video on this topic.

  • @1shortv
    @1shortv 6 років тому

    Bro it's not work "Excel 2013" help me in this problem.

  • @mds6750
    @mds6750 4 роки тому +2

    Once u click on stop button background timer still running when u click on start, disappointed,..

  • @deepakmutalik3788
    @deepakmutalik3788 2 роки тому

    Hi Sir, Really this very helpful to me but I had one query, if typed some character or number different cell also should not stop the time . Please give me answe to above my question

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

    Thanks PK but as pointed out elsewhere, the timer seems to continue in the background when you press the stop button. Is there any way to make it actually stop? Nice video btw.

    • @arloblaze9844
      @arloblaze9844 2 роки тому

      I dont mean to be so off topic but does anyone know a trick to get back into an instagram account..?
      I stupidly lost my password. I would love any assistance you can offer me.

    • @tyreign8743
      @tyreign8743 2 роки тому

      @Arlo Blaze Instablaster ;)

    • @arloblaze9844
      @arloblaze9844 2 роки тому

      @Ty Reign thanks so much for your reply. I found the site thru google and Im trying it out now.
      I see it takes quite some time so I will get back to you later with my results.

    • @arloblaze9844
      @arloblaze9844 2 роки тому

      @Ty Reign it worked and I finally got access to my account again. I'm so happy!
      Thank you so much, you saved my account !

    • @tyreign8743
      @tyreign8743 2 роки тому

      @Arlo Blaze you are welcome :D

  • @ranjitgupta943
    @ranjitgupta943 Рік тому

    Here if i close the excel this will run in the background or not ?

  • @peraruor
    @peraruor 6 років тому +4

    The timer keeps running in the background

  • @UrzDADDY
    @UrzDADDY 6 років тому

    How can you get the timer to work in Google Sheets?

  • @jafarsadhiq1324
    @jafarsadhiq1324 2 роки тому

    Can You create Multiple timers for list of activities in Excel?

  • @ModernPindawale
    @ModernPindawale 6 років тому +1

    For which purpose we use that

    • @cirilopanaresjr996
      @cirilopanaresjr996 6 років тому

      I'm using multipage with same format userform, I create timer button in textbox I have already a timer But my problem is when I start timer button the timer start in pages 1 but when I'd tried to open other page and another timer start button,automatically the timer in page 1 stop, please help me continue the timer even i select another timer button

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

    How do you stop the clock running in the background?

  • @JaysGaming2016
    @JaysGaming2016 6 років тому

    When I click start timer, lots of hashtag keys pop up?? Please help ######

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

    P.K you`re better than chewing gum

  • @noeldelosangeles718
    @noeldelosangeles718 Рік тому +1

    what if i want to start with specific time in decreasing order? that is waht im looking for

  • @shaukatsamad2510
    @shaukatsamad2510 6 років тому

    when u do any work on excel sheet it is very hard to watch ...... pls always magnify it, it would clear to see..... thnx

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

    Once after saving the file, on our next working time, it shows the warning of macro As no file exist,,, that means we need to code again ...how to avoid it and save for next use please teach us

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

    hello! you need to explain step by step, because many people, don´t know so much excell,if you explain so fast, I get lost!!!!!!!! goodness!

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

    How to do that

  • @adriandelosreyes5657
    @adriandelosreyes5657 11 місяців тому

    How to fix miss match type, when i open anothe workbook?

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

    it works great but the only thing is the timer running in the background when pushing stop, i see no reply with a solution to that.

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

      Your macro may be removed from that button
      Reassign stop macro in stop button...

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

    But the timmer is still running in the background after clicking the stop button.

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

    i want to make it with start button only and when it reaches 60 it became 0 again

  • @eligojesusalvareztimaure6544
    @eligojesusalvareztimaure6544 6 років тому

    eres Latino!!!

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

    This file is not working after share to another desktop.

  • @ggl5337
    @ggl5337 Рік тому

    when i click start.. it will start with the current time... not starting with 0

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

    Why aren't you just naming the "range of interest" for the timer and use that name reference in your VBA code? Wouldn't it be a much cleaner way of implementing this?

  • @user-er4fk9xe2x
    @user-er4fk9xe2x 2 роки тому

    Таймер имеет обратный отсчет, здесь - секундомер. Это я придираюсь)

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

    alt + shift+# wtf is that ???

  • @josetaranto172
    @josetaranto172 4 роки тому +2

    you need to have pedagogical tools before to teach things, you know???

  • @hod-pj
    @hod-pj Рік тому

    хня какая :) он же продолжает считать :)))

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

    sooooooooooooooo bad!

  • @Igerbam
    @Igerbam 6 років тому

    12 ads in 12 minutes Dislike!

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

    Não entendi nada do que você falou, mas a explicação foi fantástica! Hahaha obrigado Microsoft por manter a linguagem do VBA padronizada, procurei tanto um video assim aqui no brasil e não achei, você supriu minhas necessidades, muito obrigado!

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

    Thank you