ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get Username written in logfile (.txt) through macro (https://www.excelbanter.com/excel-programming/272883-how-get-username-written-logfile-txt-through-macro.html)

Intruder

How to get Username written in logfile (.txt) through macro
 
How can i get a Username written in logfile (.txt) through macro?

Harald Staff[_4_]

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?





All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com