jag108
Active Member
- Joined
- May 14, 2002
- Messages
- 433
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
Hi,
I have a user form with multiple text boxes on it one called start time, and one called finish time.
What I need to be able to do is get the hour(s) betwen the two, the trick is that the start time may be 20:00 and the finish time may be 06:00, so a 24 hour contingency plan is required.
i.e. 20:00 - 06:00 = 10hrs
the same will go for 08:00 - 18:00 = 10hrs
I am trying to calculate a time sheet using VBA instead of formulas, because the formulas are way to complicated to get right so VBA is having t be the way.
I have a user form with multiple text boxes on it one called start time, and one called finish time.
What I need to be able to do is get the hour(s) betwen the two, the trick is that the start time may be 20:00 and the finish time may be 06:00, so a 24 hour contingency plan is required.
i.e. 20:00 - 06:00 = 10hrs
the same will go for 08:00 - 18:00 = 10hrs
I am trying to calculate a time sheet using VBA instead of formulas, because the formulas are way to complicated to get right so VBA is having t be the way.