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/91423-inserting-dates.html)

JDay

Inserting Dates
 
If I enter anything in cell A1, I want the date automatically entered into
cell A2. How can I do this??

FSt1

Inserting Dates
 
hi,
put this in a this workbook module
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Range("A1") = "" Then
Exit Sub
Else
Range("A1").Offset(0, 1) = Date
End If
End Sub
regards
FSt1
"JDay" wrote:

If I enter anything in cell A1, I want the date automatically entered into
cell A2. How can I do this??


David Biddulph

Inserting Dates
 
"JDay" wrote in message
...
If I enter anything in cell A1, I want the date automatically entered into
cell A2. How can I do this??


=IF(A1<"",TODAY(),""), and format as Date.
--
David Biddulph




All times are GMT +1. The time now is 02:52 PM.

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