#1   Report Post  
Chris
 
Posts: n/a
Default date stamp

Is there a way to date stamp a cell by clicking on it and not hae it change
the next time that you open the file?

Thank you
  #2   Report Post  
Andy Wiggins
 
Posts: n/a
Default

For today's date:
Ctrl + ;

or for the time:
Ctrl + Shift + ;

--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"Chris" wrote in message
...
Is there a way to date stamp a cell by clicking on it and not hae it

change
the next time that you open the file?

Thank you



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You'd have to use an event macro for this. The
Worksheet_SelectionChange() event will fire on a single click, but it
will also fire if you tab or arrow into the cell.

I'd suggest using the Worksheet_BeforeDoubleClick() event (right-click
your worksheet tab and choose View Code):

Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Excel.Range, Cancel As Boolean)
With Target
If Not Intersect(.Cells, Range("B:B")) Is Nothing Then
If IsEmpty(.Value) Then
Application.EnableEvents = False
.Value = Date
.NumberFormat = "dd mmm yyyy"
Application.EnableEvents = True
Cancel = True
End If
End If
End With
End Sub

The first time a cell in the specified range (e.g., column B) is double
clicked on, the date is inserted. Subsequent double clicks act as normal
(i.e., enter Edit mode).



In article ,
"Chris" wrote:

Is there a way to date stamp a cell by clicking on it and not hae it change
the next time that you open the file?

Thank you

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
Separating date from a Date & Time stamp JT Excel Discussion (Misc queries) 9 June 10th 08 05:55 PM
Can excel have a button to input (stamp) the systems date and/or . abe Excel Worksheet Functions 5 April 24th 07 10:00 PM
How do I set an automatic date stamp into a cell in Excel? Nilla_Brown Excel Worksheet Functions 1 May 6th 05 06:18 PM
bringing data from one workbook to another using a date stamp func tifosi3 Excel Worksheet Functions 0 April 5th 05 12:13 AM
can you date time stamp entries in excel opinky Excel Discussion (Misc queries) 1 March 17th 05 04:25 PM


All times are GMT +1. The time now is 04:49 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"