View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Harald Staff[_4_] Harald Staff[_4_] is offline
external usenet poster
 
Posts: 70
Default How to get Username written in logfile (.txt) through macro

Sub LogMe()
Open "C:\temp\logfile.txt" For Append As #1
Print #1, Now, Application.UserName, "great guy that is"
Close #1
End Sub

--
HTH. Best wishes Harald
Excel MVP

Followup to newsgroup only please.

"Intruder" wrote in message
...
How can i get a Username written in logfile (.txt) through macro?