Needing help with visitor log

Lks

New member
Joined
Feb 1, 2015
Messages
2
Reaction score
0
Points
0
Location
Mokelumne Hill, CA
I'm hoping I chose the correct forum. A friend is trying to recreate a Visitor's Log they saw somewhere. It has a macro button than when pushed goes to the next empty row and enters the current date in column A and current time in column B. I've seen many variations on several forums but have yet to locate this particular scenario. Thank you.
 
see attached which contains a button on a sheet and this code:
Code:
Private Sub CommandButton21_Click()
With Cells(Rows.Count, 1).End(xlUp).Offset(1)
  .Value = Date
  .Offset(, 1) = Time
End With
End Sub
 

Attachments

  • ExcelGuru4044.xlsm
    17.9 KB · Views: 15
Back
Top