The following macro code is used to set the cell edited time to the first column of the edited row, This will be very useful to track the time when the data is changed.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = false
On Error Goto ENEV
Range("A" & Target.Row).Value = Now
ENEV:
Application.EnableEvents = true
End Sub
Unfortunatelly, nothing happens changing any cells in my sheets.. :-(
P
The values in the cell will not change unless you have formula in that cell. Calculate the end time; assign it to a variable and set it to the cell.
If you need help in fixing it, please post your macro here or send it to support@zohosheet.com .
Sub startwork1()
'
' startwork1 Macro
' Criado por un1378395622940r40id em Fri, Sep 2013 11:31:26 AM
'
Range("B7").Select
ActiveCell.Formula="=NOW()"
End Sub
Sub stopwork1()
'
' stopwork1 Macro
' Criado por un1378395622940r40id em Fri, Sep 2013 11:32:08 AM
'
Range("C7").Select
ActiveCell.Formula="=NOW()"
End Sub
Each macro must run by click a button called Star Work and Stop Work. but I´m using the formula NOW, as you said, nd the current date/time is change when I open the sheet. I need the change only when clicked the button. Thanks
ActiveCell.Formula...
to
ActiveCell.Value = Now
Working good now.
Thanks,