The code is missing
End Sub at the end so the complete code would be
''This code goes in "Active worksheet"
You can enter the code in your workbook by right clicking on a worksheet tab, choose View Code and Paste the code into the module that is presented to you . Click on the X of the main editor window to close.
Enter something along the row (not in column B) and when you hit enter or tab or otherwise go to another cell the date will be entered in column B of the row that you were working in. If you want the time, change =Int(now()) to =Now()
Bookmarks