This code inserts the current date and time in the active cell.
VBA Code:
Sub InsertCurrentDateAndTime()
ActiveCell.Value = Now()
End Sub
This code inserts the current date and time in the active cell.
VBA Code:
Sub InsertCurrentDateAndTime()
ActiveCell.Value = Now()
End Sub