I have this code. It doesnt work. Presumably I am missing something obvious but I don't know what. Any ideas would br very appreciated.
Any ideas? Thanks for any help.
Code:
Private Sub Workbook_BeforeSave (ByVal SaveAsUi As Boolean, Cancel As Boolean)
Dim ARCN As Range
Set ARCN = Range("user_details")
Dim ARCD As Range
Set ARCD = Range("logged")
user = Application.InputBox("name"), ("user details")
If user = False Then
Exit Sub
Else
ARCN = user
ARCD = Date
End If
MsgBox " user details entered "
Range("A1").Select
End Sub
Any ideas? Thanks for any help.