Sub AutoDateTime()
'
'
' Keyboard Shortcut: Ctrl+w
'
'Selection.End(xlDown).Select
Range("C1048576").Select
Selection.End(xlUp).Offset(1, 0).Select
If ActiveCell.Offset(-1, 0).Value <> "" And ActiveCell.Offset(0, 0).Value = "" And ActiveCell.Offset(0, -1) = "" Then
ActiveCell.Offset(0, 0).Select
ActiveCell.Value = VBA.Time ' for the current time of the system
ActiveCell.Offset(0, -2).Value = VBA.Date ' for the current date of the system
Else
End If
ActiveCell.Offset(1, 0).Select
End Sub
Thanks Colin Legg for ur amazing help on this.
...and okay! I will try to avoid using the send-keys in my codes.
Bookmarks