SOS
Registered Lunatic
- Local time
- Today, 13:12
- Joined
- Aug 27, 2008
- Messages
- 3,514
If stored as hours /minutes in a text format, you could use:
And then you can Sum the minutes and then use the other to display the value in hours and minutes.
Code:
Function ConvertToMins(strTimeString) As Long
Dim varSplit As Variant
Dim lngMins As Long
VarSplit = Split(strTimeString, ":")
lngMins = VarSplit(0) * 60
lngMins = lngMins + VarSplit(1)
ConvertToMins = lngMins
End Function
And then you can Sum the minutes and then use the other to display the value in hours and minutes.