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

ruby on rails - ActiveRecord order not working -

javascript - How do you prevent nested queries/catches in sequelize? -

java - ConcurrentModificationException upon committing transaction with Hibernate -