ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   current date (https://www.excelbanter.com/excel-programming/371799-current-date.html)

gall

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

Thanks,
Tricia Gall

Don Guillett

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




gall

current date
 
Thanks!!!!

"Don Guillett" wrote:

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





Don Guillett

current date
 
glad to help

--
Don Guillett
SalesAid Software

"gall" wrote in message
...
Thanks!!!!

"Don Guillett" wrote:

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








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

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