Re: Enter current time into cell hh:mm:ss
- From: dominicb <dominicb.1r5l6e_1119654307.1749@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Jun 2005 17:40:48 -0500
Good evening rglasunow
You would be better off using the =NOW() function, the only problem
with this is that it will alter every time the *** is recalculated.
The code below will call the NOW() function, format the cell
appropriately and then changes the cell contents from a formula to a
value.
Sub TimeStamp()
ActiveCell.FormulaR1C1 = "=NOW()"
With Selection
NumberFormat = "h:mm:ss;@"
Formula = .Value
End With
End Sub
HTH
DominicB
--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=18932
View this thread: http://www.excelforum.com/showthread.php?threadid=382135
.
- Follow-Ups:
- Re: Enter current time into cell hh:mm:ss
- From: JE McGimpsey
- Re: Enter current time into cell hh:mm:ss
- From: Bob Phillips
- Re: Enter current time into cell hh:mm:ss
- From: rglasunow
- Re: Enter current time into cell hh:mm:ss
- References:
- Enter current time into cell hh:mm:ss
- From: rglasunow
- Enter current time into cell hh:mm:ss
- Prev by Date: Re: incrementing every two rows
- Next by Date: Re: VBA code for IF statement with OR?
- Previous by thread: Enter current time into cell hh:mm:ss
- Next by thread: Re: Enter current time into cell hh:mm:ss
- Index(es):