Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default recording a data entry date

How do I automatically record the original date of a data entry into a
specific cell? I do not want the date to update if the cell entry is
modified.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default recording a data entry date

Rusty

Either manually Ctrl+; or with a worksheet_change() event which could check
if the cell already had a date in it and if so not change it, so for A1
changing, this code will put the date and time modified the first time only
in B1. (There is no protection in this code to stop a user changing it

Private Sub Worksheet_Change(ByVal Target As Range)
With Application
.EnableEvents = False
If Not .Intersect(Target, Range("A1")) Is Nothing Then
If Target.Offset(0, 1).Value = "" Then
Target.Offset(0, 1).Value = Now()
End If
End If
.EnableEvents = True
End With
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Rusty 1i" <Rusty
wrote in message
...
How do I automatically record the original date of a data entry into a
specific cell? I do not want the date to update if the cell entry is
modified.



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
Need to double-click for data to be recognised as date?! HierkommtdieMau Excel Discussion (Misc queries) 3 March 28th 06 11:17 AM
Simplified Data Entry Spellbound Excel Discussion (Misc queries) 0 March 24th 06 12:18 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
After concatenating data, how do I get Excel to recognise date? Anisette Excel Discussion (Misc queries) 9 December 29th 05 07:15 PM
Drop-Down Menus in Data Entry Form? [email protected] Excel Discussion (Misc queries) 2 December 29th 05 04:22 AM


All times are GMT +1. The time now is 09:19 AM.

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"