Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default making a timer

I made minesweeper using excel. Works pretty well. The only prolem i
I can't figure out how to subtract a starting time from an ending tim
grabbed using

with DateTime
.TimeValue(.Now)
end with

Does anyone know how to subtract times from each other? As in

DeltaTime = Time2-Time1

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default making a timer

You can simply subtract the start time from the end time. The
result will be a number that represents a fraction of a 24 hour
day. Multiply this by 60*60*24 to get the number of seconds.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"animal1881 " wrote
in message ...
I made minesweeper using excel. Works pretty well. The only

prolem is
I can't figure out how to subtract a starting time from an

ending time
grabbed using

with DateTime
TimeValue(.Now)
end with

Does anyone know how to subtract times from each other? As in

DeltaTime = Time2-Time1?


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default making a timer

or perhaps format as minutes and seconds
[m]:ss
instead of formatting in seconds

Many Date an Time questions would be answered in either of our
webpages.
http://www.mvps.org/dmcritchie/excel/datetime.htm more than just Excel
http://www.cpearson.com/excel/datetime.htm shorter

ExcelForum had made searching for web pages very difficult because
they put newsgroup postings onto web pages where they get indexed
again by Google (in addition to being indexed by Google Groups).
Unless Google stops indexing such pages as websites the problem will
continue to grow, and Google has their own answers.google.com so
that is not likely to happen. Newsgroups have lots of questions that
are asked and answered 100s of times; whereas, web pages written
on a topic tend to be better written and less redundant. If you could
eliminate the newsgroup type of postings you would see Chip's web page
near the top of a web search for -- excel difference in time

Just the same almost every answer posted has been posted before or
is based on previously posted questions and answers, or directly from
the Excel Help, or Microsoft KB. So while the answers may get better
with time, a lot of effort is wasted on duplication.

newsgroups searches.
http://www.mvps.org/dmcritchie/excel/xlnews.htm

HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm


"Chip Pearson" wrote ...
You can simply subtract the start time from the end time. The
result will be a number that represents a fraction of a 24 hour
day. Multiply this by 60*60*24 to get the number of seconds.



"animal1881 " wrote...
I made minesweeper using excel. Works pretty well. The only
problem is; I can't figure out how to subtract a starting time from an
ending time grabbed using

with DateTime
TimeValue(.Now)
end with

Does anyone know how to subtract times from each other? As in

DeltaTime = Time2-Time1?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping a Timer / Running a timer simultaneously on Excel Paul23 Excel Discussion (Misc queries) 1 March 10th 06 12:08 PM
Timer RK[_3_] Excel Programming 2 April 5th 04 06:03 AM
API TIMER Seth Excel Programming 0 January 15th 04 01:33 PM
API Timer seth Excel Programming 1 January 14th 04 10:40 PM
API Timer Seth[_5_] Excel Programming 2 January 13th 04 05:39 PM


All times are GMT +1. The time now is 12:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"