Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default User informatiion

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default User informatiion

Thanks Rob.

"Rob Bovey" wrote in message
...
"Fred" <leavemealone@home wrote in message
...
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.


Hi Fred,

I've attached a small program I use to troubleshoot network login
problems. It shows how to acquire the info you're looking for. Note that

it
will only work on Windows NT/2000/XP/2003 operating systems. The Win9x
operating system family doesn't support the necessary APIs.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining user access (via user id) using macros maruko Excel Discussion (Misc queries) 0 July 27th 09 02:44 AM
How do I report to User A vs User B from shared data table? RogClark Excel Discussion (Misc queries) 0 April 30th 09 07:54 PM
making NT user/login user appear in a cell [email protected] Excel Worksheet Functions 1 March 3rd 09 03:41 AM
moving informatiion from one sheet to a total sheet john Excel Discussion (Misc queries) 2 January 31st 08 10:17 PM
How to: Make user click End User License Agreement acceptance jasonsweeney[_21_] Excel Programming 7 January 30th 04 01:41 AM


All times are GMT +1. The time now is 08:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"