<code>
'Open (create) the file you want to write to, near start of macro
Open "C:/LogFile.txt" For Append As #1
'Ask user to enter some text so we can log what they input
ReplyToLog = InputBox("Enter some text")
'Create Log entry with timestamp
MyLogEntry = Format(Now, "dd/mm/yyyy hh:mm:ss") & " - User input: " & ReplyToLog
Print #1 , MyLogEntry
'Repeat the above for as many logs as you need
'Close the log file near the end of the macro
Close #1
Close #1
.
What are you wanting to log ?
Will the user be inputting the data or is the log capturing what the user is doing without his/her knowledge ?
Please be more descriptive.