Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Automatically have the date or time inserted into a cell

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Automatically have the date or time inserted into a cell

you can have =now() entered in there. but it updated every time you open the
workbook. I'm sure you'll be seeing some VB programs that'll do it for you...
:-)

"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Automatically have the date or time inserted into a cell

Indeed there is, using VBA code, but the parameters can vary and the
permanency of the date can be volitile, depending on the conditions........If
you want code, describe a little more clearly exactly when you would like the
date inserted, where, and whether you want it to be frozen in time at that
point........

Vaya con Dios,
Chuck, CABGx3



"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Automatically have the date or time inserted into a cell

It is in an Excel worksheet. The ability to simplty click on a specific cell
in columns with the headers 'Date' and 'Time' and thereby enter the date and
time permenantly.

"CLR" wrote:

Indeed there is, using VBA code, but the parameters can vary and the
permanency of the date can be volitile, depending on the conditions........If
you want code, describe a little more clearly exactly when you would like the
date inserted, where, and whether you want it to be frozen in time at that
point........

Vaya con Dios,
Chuck, CABGx3



"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.

  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Automatically have the date or time inserted into a cell

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
'Macro inserts date in Column B for change in Column A
'Assumes column B is DATE, and column C is TIME
With ActiveCell
If ActiveCell.Column = 2 Then 'Limits macro action to column B
If Not Selection Is Nothing Then
Application.Selection.Value = Date
Else
End If
Else
End If
If ActiveCell.Column = 3 Then 'Limits macro action to column C
If Not Selection Is Nothing Then
Application.Selection.Value = Time
Else
End If
Else
End If
End With
End Sub

Vaya con Dios,
Chuck, CABGx3



"Chris" wrote:

It is in an Excel worksheet. The ability to simplty click on a specific cell
in columns with the headers 'Date' and 'Time' and thereby enter the date and
time permenantly.

"CLR" wrote:

Indeed there is, using VBA code, but the parameters can vary and the
permanency of the date can be volitile, depending on the conditions........If
you want code, describe a little more clearly exactly when you would like the
date inserted, where, and whether you want it to be frozen in time at that
point........

Vaya con Dios,
Chuck, CABGx3



"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Automatically have the date or time inserted into a cell

Chris

Without code.............

CTRL + ; enters a static date

CTRL + SHIFT + ; enters a static time

With code............

Private Sub Worksheet_BeforeDoubleClick(ByVal _
Target As Range, Cancel As Boolean)
If Target.Column = 1 Then
Target.Value = Date
End If
If Target.Column = 2 Then
Target.Value = Format(Now, "h:mm:ss")
End If
End Sub

Double-click on the cell in column A to enter date.........d-click on a cell in
Column B to enter the time..


Gord Dibben MS Excel MVP

On Mon, 8 Jan 2007 08:31:00 -0800, Chris
wrote:

It is in an Excel worksheet. The ability to simplty click on a specific cell
in columns with the headers 'Date' and 'Time' and thereby enter the date and
time permenantly.

"CLR" wrote:

Indeed there is, using VBA code, but the parameters can vary and the
permanency of the date can be volitile, depending on the conditions........If
you want code, describe a little more clearly exactly when you would like the
date inserted, where, and whether you want it to be frozen in time at that
point........

Vaya con Dios,
Chuck, CABGx3



"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Automatically have the date or time inserted into a cell

Hi,

Not sure if this will help but here are shortcuts to enter current date and
time without typing them in:

Date - CTRL+;
Time - CTRL+SHIFT+:

HTH
Jean-Guy

"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Automatically have the date or time inserted into a cell

Need trick ...but how about if you want to round off to 15 minute
increaments going to the nearseast 1/4 hour
pinmaster wrote:
Hi,

Not sure if this will help but here are shortcuts to enter current date and
time without typing them in:

Date - CTRL+;
Time - CTRL+SHIFT+:

HTH
Jean-Guy

"Chris" wrote:

Is there a way to have a cell auto-populated with the current date or time
without having to type it? e.g. click on the cell and the date or time are
entered.


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
Click a cell and update to current time / date ? Eric Excel Discussion (Misc queries) 3 October 4th 06 12:12 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 05:13 AM.

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"