ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   get date with now() today() but dont update with recalc (https://www.excelbanter.com/excel-worksheet-functions/83001-get-date-now-today-but-dont-update-recalc.html)

robert w

get date with now() today() but dont update with recalc
 
is there a way to stop a cell being recalculated when useing the now()
function ?
e.g if(a1="order",c1=now(),"")....but i dont want the cell updated after its
inital value is obtained.

CLR

get date with now() today() but dont update with recalc
 
This Change-event macro will put the date in C1 when "order" is typed in A1
and the "Enter" key is pressed.

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("a1").Value = "order" Then
Range("c1").Value = Date
End If
End Sub

Vaya con Dios,
Chuck, CABGx3


"robert w" <robert wrote in message
...
is there a way to stop a cell being recalculated when useing the now()
function ?
e.g if(a1="order",c1=now(),"")....but i dont want the cell updated after

its
inital value is obtained.





All times are GMT +1. The time now is 03:10 PM.

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