hours / minutes

J

JT

In my macro, I use the following code to return the total number of minutes
between 2 times:

TtlMins = Day2 - Day1
TtlMins = 545

What I want to do next is to return the number of hours (9) and the
remaining minutes (5) into 2 variables but I'm not having much luck

MyHrs = ????
MyMins = ???

If I try TtlMins / 60 - I get 9.03338 when all I want is 9 and then I want
to see 5 as the minutes left over

Any help or code suggestions would be greatly appreciated. Thanks for the
help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top