I have two textboxes that store time. I want to find the difference of hours between two times. The following code doesn't work.
Thanks![]()
a = TextBox6.Value b = TextBox7.Value c = timediff(TextBox7.Value, TextBox6.Value)
I have two textboxes that store time. I want to find the difference of hours between two times. The following code doesn't work.
Thanks![]()
a = TextBox6.Value b = TextBox7.Value c = timediff(TextBox7.Value, TextBox6.Value)
You could try defining the variables as Dates.
What does timediff do?
Regards
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks