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

preview_player
Показать описание

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:
Рекомендации по теме
Комментарии
Автор

Excellent! This is exaclty what I was looking for.

gerardogalavizjimenez
Автор

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>

sarahargrave
Автор

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 .

KnowEverythin
Автор

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

mrsk
Автор

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

rezasaberi
Автор

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)

KnowEverythin
Автор

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.

krn
Автор

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

JanKowalski-hkcg
Автор

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

grosgros