ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Inserting Dates (https://www.excelbanter.com/excel-discussion-misc-queries/91802-inserting-dates.html)

JDay

Inserting Dates
 
If anything appears in cell A1, I would like the date to appear in cell B1.
However, once that date appears, I want that date to remain constant, not
update daily. I need to know what date I sent a particular letter so the
date must remain.

Miguel Zapico

Inserting Dates
 
You may find what you need he
http://www.mcgimpsey.com/excel/timestamp.html
The section using circular references shows that exact case.

Hope this helps,
Miguel.

"JDay" wrote:

If anything appears in cell A1, I would like the date to appear in cell B1.
However, once that date appears, I want that date to remain constant, not
update daily. I need to know what date I sent a particular letter so the
date must remain.


CLR

Inserting Dates
 
Perhaps this will do as you wish.......

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As
Excel.Range)
If Not Range("a1").Value = "" Then
Range("b1").Value = Date
Else
Range("b1").Value = ""
End If
End Sub


Vaya con Dios,
Chuck, CABGx3





"JDay" wrote:

If anything appears in cell A1, I would like the date to appear in cell B1.
However, once that date appears, I want that date to remain constant, not
update daily. I need to know what date I sent a particular letter so the
date must remain.



All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com