NewOrderFac33
Well-known Member
- Joined
- Sep 26, 2011
- Messages
- 1,283
- Office Version
- 2016
- 2010
- Platform
- Windows
Good morning,
I have a series of time values which are formatted thus e.g. 28hr 46m 22s
I have some code that builds up a string containing the "minute" vales of these strings, so, for example 10h 15m 17s would display as 615 (10*60+15)
I achieve this with:
This works fine as long as the value doesn't exceed 24 hours - 28hr 46m 22s for example returns 286 when it should be 1726 (28*60)+46
Do any of you nice folk have a suggestion as to how I can alter my code to include up the days correctly?
Thanks in advance
Pete
I have a series of time values which are formatted thus e.g. 28hr 46m 22s
I have some code that builds up a string containing the "minute" vales of these strings, so, for example 10h 15m 17s would display as 615 (10*60+15)
I achieve this with:
Code:
MinuteValue = (Hour(Selection) * 60) + Minute(Selection)
Do any of you nice folk have a suggestion as to how I can alter my code to include up the days correctly?
Thanks in advance
Pete