I have a sheet where I input the start and end time of an activity.
These times are inputted in the "Custom 0\:00" format to allow easy entry. For instance, when I type 0605 then 06:05 automatically appears.
Now I need to ensure that the end time is later than the start time. I want VBA to do this.
The only way I think is possible is to first convert 0605 to a numerical value = 6 hours and 5 minutes = 365 minutes.
Do the same with the end time, and compare both values.
But how to write this in VBA ?
These times are inputted in the "Custom 0\:00" format to allow easy entry. For instance, when I type 0605 then 06:05 automatically appears.
Now I need to ensure that the end time is later than the start time. I want VBA to do this.
The only way I think is possible is to first convert 0605 to a numerical value = 6 hours and 5 minutes = 365 minutes.
Do the same with the end time, and compare both values.
But how to write this in VBA ?