Thread: Who Am I?
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ross Culver[_2_] Ross Culver[_2_] is offline
external usenet poster
 
Posts: 24
Default Who Am I?

Could someone please tell me how I can find out what my network login name
is in VBA?

I do it all the time in .net, but there's no 'Import' in vba and I haven't a
clue what to reference to be able to get the current user's network name
(not the application username).

I thought I almost had it with:

Set orootDSE = GetObject("LDAP://rootDSE")
MsgBox orootDSE.get("currentuid")

but 'currentuid' isn't correct.

Thanks,

Exasperated