Private Sub Workbook_Open()
[z1] = Application.InputBox("If your user name is not " & Application.UserName & " please enter the correct username")
If [z1] = "" Then [z1] = Application.UserName
End Sub
Private Sub Workbook_Open()
Dim user_name As String
Dim FBR As Long 'First Blank Row
'instead of the default "", you can use Application.UserName)
user_name = Application.InputBox("name please", "title", "")
With Sheets("login")
FBR = .Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
.Cells(FBR, 2) = user_name
.Cells(FBR, 1) = Now
End With
End Sub