Excel VBA Format Textbox Hours and Minutes for Start Time and End Time

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024

Комментарии • 24

  • @gerardogalavizjimenez6615
    @gerardogalavizjimenez6615 6 лет назад +1

    Excellent! This is exaclty what I was looking for.

  • @sarahargrave4591
    @sarahargrave4591 4 года назад +2

    This is very helpful. I have an issue though. I want users to be able to enter time as "1:30" and get "1:30 PM" not 1:30 AM. No need for my users to have to know military time to enter the time the call came in. How do I make this happen with the code you provided in the video>

  • @darrengodkin
    @darrengodkin 7 лет назад +1

    Another great tutorial, thanks!

  • @selinulupnar3875
    @selinulupnar3875 3 года назад

    THANK YOU THIS IS GREAT STUFF!!

  • @KnowEverythin
    @KnowEverythin 5 лет назад +1

    i have 3 text box, i.e A, B, C. pls provide the formula when i want to output in textbox 3(c} when i want to time difference between textbox1and text box2.
    suppose Text box 1 = 22:00(10 pm)
    textbox2= 01:00 {1 am)
    Textbox3=.............?

  • @eCabinetstipsandtricks
    @eCabinetstipsandtricks 7 лет назад

    Thanks, Dan. Great tip

  • @JanKowalski-hk5cg
    @JanKowalski-hk5cg 3 года назад

    Your video is one of the reasons I pay monthly internet fee and buy the apple equipment .. do they share the profit with you?

  • @deadlock107
    @deadlock107 7 лет назад +1

    Cool! Thanks :)

  • @grosgros4115
    @grosgros4115 3 года назад +1

    hi....where have you declared "myVar"

  • @rezasaberi7264
    @rezasaberi7264 2 года назад

    hi dear
    In this method, how to diff between start time and end time?

  • @ewertonemmanuel
    @ewertonemmanuel 6 лет назад

    Very good. Thanks!

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  6 лет назад

      Hi Ewerton, you're very welcome! Thanks for the comments!

  • @erickboczar678
    @erickboczar678 4 года назад

    Thanks!!!

  • @krn14242
    @krn14242 7 лет назад

    Thanks Daniel. Why did you not have success with FORMAT? Weird stuff happen? I use both TEXT and FORMAT and have not seen much difference yet anyway.

    • @ExcelVbaIsFun
      @ExcelVbaIsFun  7 лет назад

      Hi krn14242, it may have been a fluke, but I couldn't get the hh:mm stuff to do what I wanted, but the same syntax with the worksheetfunction worked better. I think these were coded slightly differently by Microsoft, but I'm not sure all the subtleties. Thanks, my friend!
      Dan

  • @excelvbaexpertonline8032
    @excelvbaexpertonline8032 6 лет назад

    Great!

  • @mrsk8145
    @mrsk8145 5 лет назад

    myVar=Empty. Therefore not showing the same value as "Me.tbStart" am pretty much stuck there and cannot go further please assist. Many thanks in advance
    Kay

  • @KnowEverythin
    @KnowEverythin 5 лет назад

    Sir,
    if i text box2 input time is less then input textbox1, then
    give error msg in excel... exm textbox1= 00:20, textbox2=23:30... then
    give error msg .