Hi
I have a workbook with three sheets named respectively A, B and C.
Each sheet is formatted the same way (same template based). Only the content changes.
I would like to write in VBA that, when a change occurs in the active sheet, the cell B1 which is the date, changes to the current date/time (timestamped)
I tried to used that code below but when I make a change in the sheet A, the timestamp is updated in the three sheets
Therefore, how can I make the code change the timestamp only for the active sheet and not each sheet's?
Thank you in advance for your help
Shiro
I have a workbook with three sheets named respectively A, B and C.
Each sheet is formatted the same way (same template based). Only the content changes.
I would like to write in VBA that, when a change occurs in the active sheet, the cell B1 which is the date, changes to the current date/time (timestamped)
I tried to used that code below but when I make a change in the sheet A, the timestamp is updated in the three sheets
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
cells(1,2) = Now()
End Sub
Therefore, how can I make the code change the timestamp only for the active sheet and not each sheet's?
Thank you in advance for your help
Shiro