#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 470
Default Lock in date

Is there a way to lock in a date that an entry is made. Ex: Col A1:A10
contains a formula to indicate a date that entry is made is B1:B10.

The formula setup in A1 that comes to mind is: =IF(B1="","",TODAY()). But
that date changes with each day. I want to lock in the date an entry is made.

Thanks,
Les
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Lock in date

You need a change event sub to do that:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then
Application.EnableEvents = False
Range("A" & Target.Row) = Date
Application.EnableEvents = True
End If
End Sub

Regards,
Stefi


€˛WLMPilot€¯ ezt Ć*rta:

Is there a way to lock in a date that an entry is made. Ex: Col A1:A10
contains a formula to indicate a date that entry is made is B1:B10.

The formula setup in A1 that comes to mind is: =IF(B1="","",TODAY()). But
that date changes with each day. I want to lock in the date an entry is made.

Thanks,
Les

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How to return a value between date ranges Mary-Lou Excel Worksheet Functions 7 May 26th 06 10:00 PM
Lock data in a cell a specific cell based on selection on other ce CrimsonPlague29 Excel Worksheet Functions 0 May 10th 06 11:06 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
How can I lock a date that has been established by the 'today ()'. ENT3041 Excel Discussion (Misc queries) 5 January 4th 05 10:59 PM


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