Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default keeping track of time


Is there a simple way to do the following.

Just 1 sheet.


I want to have a user click a command button and it puts the time at
that moment in cell A2. I don't want it to be a now() or today()
because when they are done working i want them to click another button
that puts the time in cell B2, and my formula will figure the time
difference.

Thanks for any help.


Josh


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=473084

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default keeping track of time


Josh-

Sub timedelay()
Cells(2, 1) = "=now()"
Cells(2, 1) = Cells(2, 1)
End Sub

this uses the "now" function then immediately writes over th
"function" with the value... this way it is no longer a function (whic
will change with time), but the value

--
tad_wegne
-----------------------------------------------------------------------
tad_wegner's Profile: http://www.excelforum.com/member.php...fo&userid=2777
View this thread: http://www.excelforum.com/showthread.php?threadid=47308

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default keeping track of time

Or, more simply,

Cells(2, 1).Value = Now()


On Tue, 4 Oct 2005 13:33:44 -0500, tad_wegner
wrote:


Josh-

Sub timedelay()
Cells(2, 1) = "=now()"
Cells(2, 1) = Cells(2, 1)
End Sub

this uses the "now" function then immediately writes over the
"function" with the value... this way it is no longer a function (which
will change with time), but the value.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default keeping track of time

jhahes wrote:
Is there a simple way to do the following.

Just 1 sheet.


I want to have a user click a command button and it puts the time at
that moment in cell A2. I don't want it to be a now() or today()
because when they are done working i want them to click another button
that puts the time in cell B2, and my formula will figure the time
difference.

Thanks for any help.


Josh




Built into Excel is the "Ctrl ;" function. It does what you want. After it
time stamps the active cell you can format the cell to show date or time or
whatever it is you wanted.

Bill
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
Keeping Track of - Insurance - Medical TCC-TLC Excel Discussion (Misc queries) 0 April 24th 08 01:11 AM
Keeping track of employee training IcarusFB Excel Discussion (Misc queries) 6 December 31st 05 03:14 PM
Keeping track of useful macros malvis Excel Discussion (Misc queries) 1 August 2nd 05 11:28 PM
Keeping track of code Eric White[_2_] Excel Programming 4 June 9th 05 09:41 AM
Help with keeping track of payments Mike Busch Excel Discussion (Misc queries) 1 February 23rd 05 03:37 PM


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

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

About Us

"It's about Microsoft Excel"