Hi All , i need help to subract two diiferent times. I have looked for help with this on other pages but have not been able to find the correct VBA to give me the correct results.
I am presentlty taking the time that is put into two different cells and then extracting these and then i want to find the difference between them in the time format.
Here is what i have so far.....
Dim MyTimeBefore, MyTimeFault as integer
Dim TTime as Date
MyTimeBefore = Activecell.offset (-1,-2 ).Range ("A1"
MyTimeFault = Activecell.offset (0,-1).Range ("A1"
TTime = MyTimeFault - MyTimeBefore
I am presentlty taking the time that is put into two different cells and then extracting these and then i want to find the difference between them in the time format.
Here is what i have so far.....
Dim MyTimeBefore, MyTimeFault as integer
Dim TTime as Date
MyTimeBefore = Activecell.offset (-1,-2 ).Range ("A1"
MyTimeFault = Activecell.offset (0,-1).Range ("A1"
TTime = MyTimeFault - MyTimeBefore