Z
zoot
Hello All,
I sure hope someone can help me, I just can't seem to figure this out.
I am using the time function to calculate how long an application is open.
It works fine except until the hour passes midnight then it does not
calculate properly anymore. Does anyone know how I can calculate the time
an application is open and keep a running total of time the application is
open, taking into account if it passes the midnight hour. This is what I
have done so far, thanks for your help excuse any convention errors as I am
new at trying to program in VBA
Cells(2, 8) = Time
mytime = Cells(2, 8) - Cells(1, 8) 'time application is open - time
application is closed
Cells(5, 8) = mytime + Cells(5, 8) 'cumulative time application is open
I sure hope someone can help me, I just can't seem to figure this out.
I am using the time function to calculate how long an application is open.
It works fine except until the hour passes midnight then it does not
calculate properly anymore. Does anyone know how I can calculate the time
an application is open and keep a running total of time the application is
open, taking into account if it passes the midnight hour. This is what I
have done so far, thanks for your help excuse any convention errors as I am
new at trying to program in VBA
Cells(2, 8) = Time
mytime = Cells(2, 8) - Cells(1, 8) 'time application is open - time
application is closed
Cells(5, 8) = mytime + Cells(5, 8) 'cumulative time application is open