Date does not update until worksheet change
The SheetChange Event fires when you activate a different sheet within the
workbook. I think this is what you are wanting.
Put this code in worksheet module.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("A1").Value = Date
End Sub
--
Cheers,
Ryan
"spreadsheetlady" wrote:
Hi,
My work sheet has a date in cell: "A1".
I would like the date to update (only) if there is a change in the sheet.
I'm thinking of this to start:
Something like Private Sub Workbook_SheetChange(By Val Sh As Object, By Val_
Target As Excel.Range)
Thanks in advance,
Amy
|