View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
keepITcool keepITcool is offline
external usenet poster
 
Posts: 2,253
Default User informatiion

there are several more advanced solutions but this works for me in winXP:

Sub User()
MsgBox Environ$("username") & vbNewLine & _
Environ$("userdomain") & vbNewLine & _
Environ$("logonserver")
End Sub


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Fred" <leavemealone@home wrote:

Is there anyway I can findout if the user is logged on to the local
domain and if that user belongs to a particular group.

Thanks for any help.
Fred