Add minutes to a time (hh:mm) in excel vba -


i making production schedule, , add ex. 78 minutes time ex. 7:05 (am) in vba. how go doing this? have tried far, i'm getting error 13 type:mismatch

dim tuntilpump integer dim tfpump long, tstartpump long  tup = 78 tfp = time(0, tup, 0) tsp = time(7,05,0) + tfp 

i'm thinking has variable dimensions or format of times, have no idea i'm doing wrong. appreciated, , in advance!

use dateadd function:

trp = dateadd("n",78,"7:05:00") 

the "n" means minutes.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -