Hi,
I have a sub that iterates over worksheets adding up times (double data types). Then displays the total hours in a cell formatted as [h]:mm
My problem is I need to display this in a MsgBox instead of a formatted cell. I've tried variations of:
MsgBox ("Total hours available for this date is " & Format(actualRemainingNurseHours, "[h]:mm"))
...and...
MsgBox ("Total hours available for this date is " & Format(actualRemainingNurseHours, "hh:mm"))
The first MsgBox displays :01 and the second displays 12:00 (instead of 60:00).
Can anyone advise the correct syntax to use to get this displaying correctly?
Any pointers would be much appreciated.
Thanks,
K
I have a sub that iterates over worksheets adding up times (double data types). Then displays the total hours in a cell formatted as [h]:mm
My problem is I need to display this in a MsgBox instead of a formatted cell. I've tried variations of:
MsgBox ("Total hours available for this date is " & Format(actualRemainingNurseHours, "[h]:mm"))
...and...
MsgBox ("Total hours available for this date is " & Format(actualRemainingNurseHours, "hh:mm"))
The first MsgBox displays :01 and the second displays 12:00 (instead of 60:00).
Can anyone advise the correct syntax to use to get this displaying correctly?
Any pointers would be much appreciated.
Thanks,
K