current date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to figure out how to get the current date into a cell when a
user clicks the cell.

Thanks,
Tricia Gall
 
right click sheet tab>view code>insert this>save
now when you select cell a2 the date will be today

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address <> "$A$2" Then Exit Sub
Target = Date
End Sub
 
Thanks!!!!

Don Guillett said:
right click sheet tab>view code>insert this>save
now when you select cell a2 the date will be today

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address <> "$A$2" Then Exit Sub
Target = Date
End Sub
 
Back
Top