I have created a document and added a button with this macro script attached.
currently this works great and does exactly what i wanted it to do but I am having trouble changing it. Thank you Dflak and DannyJ for helping me get to here.
Right now it creates the time stamps in column A. I need to be able to change it to write the results in another column. This will allow me to create more buttons and have each post to a different column. I have tried everything i know and can not make it work. Any help would be apreciated.
Sub InputTime()
Dim emptyRow As Long 'emptyRow is used instead of a row number
emptyRow = WorksheetFunction.CountA(Range("A:A")) + 1 'Defines empty row as first empty row in a column (In this case Column A)
Sheets("Sheet1").Cells(emptyRow, 1).Value = Now()
Sheets("Sheet1").Cells(emptyRow, 1).NumberFormat = "h:mm:ss;@"
End Sub
Bookmarks