VBA UserGroup Variable

J

Jezzyjez

What is the variable name for the value of the usergroup name for example:

If Usergroup = "Admin" Then
MsgBox ("Test")
End If

I have just put Usergroup in as the variable name but this does not work
what name should be used?
 
J

Jezzyjez

Ok i get where your coming from there, what i need to achieve is when people
from user group A log in frmA opens, and when people from user group B log in
frmB opens so i have created a macro to be run on startup with simular code
as to shown below but this obviously doesnt work
 
D

Douglas J. Steele

Did you bother checking the reference I gave?

You can use

If faq_IsUserInGroup ("Admins", CurrentUser) Then
MsgBox "Test"
End If
 
Top