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

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • 📊 Free Workbooks: www.excelvbais...
    🥷Join Excel Ninja Pro: www.excelvbais... Months FREE On Annual Plan Auto Applied)
    🥷Excel Ninjas FB Group: www.excelvbais... (Free downloads, Trainings, Live Q&A and more)
    Learn how to manipulate textboxes with hours and minutes time formatting. BONUS - at the end, learn how to make it either 24 hour (military time) OR civilian time (am and pm)! Fun stuff!
    Fantastic Developer Tools:
    🔒 Transform Any Excel File Into A Locked EXE: www.excelvbais... (25% off with code ‘25OFF’)
    🟡 Create Custom Installers: www.excelvbais...
    👋 Business Inquiries, Consulting, Comments, etc: www.excelvbais...

КОМЕНТАРІ • 24

  • @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>

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

    Excellent! This is exaclty what I was looking for.

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

      Awesome! So glad it helped, Gerardo!

  • @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=.............?

  • @darrengodkin
    @darrengodkin 7 років тому +1

    Another great tutorial, thanks!

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

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

  • @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

  • @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?

  • @grosgros4115
    @grosgros4115 3 роки тому +1

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

  • @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 .

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

    THANK YOU THIS IS GREAT STUFF!!

  • @eCabinetstipsandtricks
    @eCabinetstipsandtricks 7 років тому

    Thanks, Dan. Great tip

  • @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

  • @deadlock107
    @deadlock107 7 років тому +1

    Cool! Thanks :)

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

    Very good. Thanks!

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

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

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

    Thanks!!!

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

    Great!