!!! Excel and Windows NT Integrated Security !!!

D

Daniel

Do you know how to read the userid logged on a PC using VBA.

For example as using the instruction request.servervariables("AUTH_USER") in
ASP.

Thanks!
 
F

Frank Kabel

Hi
try
Public Function WinUserName() As String
WinUserName = Environ("UserName")
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top