vba - Display number of hours -


this question exact duplicate of:

i've been trying find way show on listbox number of hours between time , time b, if thats hundred of hours. note: tiempoa taken "now" too, before time b.

dim tiempoa date dim tiempob date dim tiempoc date  tiempoa = .offset(, -18).value tiempob = tiempoc = format(tiempoa - tiempob, "hh:mm")  data(i, 5) = tiempoc 

this whats displayed, showld around 80 hours.

i've figured out.

   tiempoa = .offset(, -18).value    tiempob =    tiempoc = datediff("h", tiempoa, tiempob)  data(i, 5) = tiempoc 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -