How to get Username written in logfile (.txt) through macro

  • Thread starter Thread starter Intruder
  • Start date Start date
Sub LogMe()
Open "C:\temp\logfile.txt" For Append As #1
Print #1, Now, Application.UserName, "great guy that is"
Close #1
End Sub
 
Back
Top