Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Subtracting time in excel to show in minutes:seconds

Hi,

I'm using the following code for a timer(stopwatch)in excel, but the
final time i want to show in mintues and seconds. Is there a way do
this? Does anyone have something like this already they can share with
me? What I want is to have a spreadsheet to show the time it took to
perform a task, but I'm trying to put a stopwatch(timer) on so its all
on one sheet.

Please help!

Thanks,
Gabe

Here's what I have for a timer(stopwatch):

Option Explicit

Private startTime As Single

Private Sub StartButton_Click()
startTime = Timer
End Sub

Private Sub StopButton_Click()
Dim finalTime As Single
finalTime = Timer - startTime
ActiveCell = Format(finalTime, "0:00")
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Subtracting time in excel to show in minutes:seconds

hi,
the hours and minutes seems like a simple formate problem.
the timer, don't know.
see this site. it is all about time.
http://www.mvps.org/dmcritchie/excel/datetime.htm

-----Original Message-----
Hi,

I'm using the following code for a timer(stopwatch)in

excel, but the
final time i want to show in mintues and seconds. Is

there a way do
this? Does anyone have something like this already they

can share with
me? What I want is to have a spreadsheet to show the

time it took to
perform a task, but I'm trying to put a stopwatch(timer)

on so its all
on one sheet.

Please help!

Thanks,
Gabe

Here's what I have for a timer(stopwatch):

Option Explicit

Private startTime As Single

Private Sub StartButton_Click()
startTime = Timer
End Sub

Private Sub StopButton_Click()
Dim finalTime As Single
finalTime = Timer - startTime
ActiveCell = Format(finalTime, "0:00")
End Sub
.

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
How do I show amount of time in minutes and seconds? TitanG Excel Worksheet Functions 6 September 9th 08 01:24 AM
How do I change a minutes and seconds as a 2400 time to seconds? NickBrown419 Excel Worksheet Functions 1 August 10th 08 09:12 PM
Display hours, minutes, seconds on a time-scale axis in Excel 2003 Saritha Charts and Charting in Excel 3 April 1st 08 11:16 PM
Time inputted as minutes and seconds Excel edbarunning New Users to Excel 3 May 19th 06 01:14 PM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM


All times are GMT +1. The time now is 12:08 PM.

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"