#1   Report Post  
Junior Member
 
Posts: 3
Default Data Input Date

Hi,

I was wondering if there is a way to have two columns. One of them will be filled by the user to input data. The other will display the data entry date automatically. Obviously I know of the Today() function. But this is no use to me as everytime I open the sheet the dates will change.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Data Input Date

Say the data goes in column A and we want the date automatically entered in
column B. Put this worksheet event macro in the worksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("A:A")
If Intersect(Target, r) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Offset(0, 1) = Date
Application.EnableEvents = True
End Sub

--
Gary''s Student - gsnu2007j


"Torres" wrote:


Hi,

I was wondering if there is a way to have two columns. One of them will
be filled by the user to input data. The other will display the data
entry date automatically. Obviously I know of the Today() function. But
this is no use to me as everytime I open the sheet the dates will
change.




--
Torres

  #3   Report Post  
Junior Member
 
Posts: 3
Default

Thanks Gary,

It seems to work.
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
Data validation: want input restricted to date value or N/A Rachel Garrett Excel Worksheet Functions 2 June 11th 08 07:37 PM
Data input based on date list? PatrickJ Excel Worksheet Functions 3 February 1st 07 02:20 PM
Recording Time & Date based on data input Lady Success Excel Worksheet Functions 2 October 19th 06 01:51 PM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
Input Date when data is entered into another cell GaryByrd Excel Worksheet Functions 2 February 1st 05 12:37 AM


All times are GMT +1. The time now is 01:49 PM.

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"