View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Joseph[_36_] Joseph[_36_] is offline
external usenet poster
 
Posts: 1
Default Time Difference between two events

I see what you're saying, but this is going to be done in a form an
then saved to a database, so the formatting has to be done in code. Th
other problem i'm having is the the startTime and endTime variables ar
storing the same value from the Now() function. Here is the code:

Dim startTime, endTime
startTime = Now()
endTime = Now()
MsgBox (startTime)
MsgBox (endTime)
MsgBox (Format(startTime - endTime, "HH:MM:SS")

--
Message posted from http://www.ExcelForum.com