ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there a way of finding if the user is a system administrator? (https://www.excelbanter.com/excel-programming/400892-there-way-finding-if-user-system-administrator.html)

rchan11

Is there a way of finding if the user is a system administrator?
 
Hi,

I'd like to know if there is any way in VBScript Excel 2003, to determine
whether the current user is a system administrator. I have a custom addin
that I only want the uninstall to be run if the user is a system
administrator.

Thanks,
Ryan

urkec

Is there a way of finding if the user is a system administrator?
 
"rchan11" wrote:

Hi,

I'd like to know if there is any way in VBScript Excel 2003, to determine
whether the current user is a system administrator. I have a custom addin
that I only want the uninstall to be run if the user is a system
administrator.


You can find some sample code for testing group membership he

http://www.rlmueller.net/freecode1.htm

Hope this helps.

--
urkec


All times are GMT +1. The time now is 06:09 PM.

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