Thread: current date
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default current date

right click sheet tabview codeinsert thissave
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

--
Don Guillett
SalesAid Software

"gall" wrote in message
...
I would like to figure out how to get the current date into a cell when a
user clicks the cell.

Thanks,
Tricia Gall