How to get the UserID?

K

Karen

I'm using Outlook 2000
How to get the current user ID? e.g. "jsmith"

I just know that the following code can get the name of user, e.g. "John
Smith"
Set MyNameSpace = Application.GetNameSpace("MAPI")
MsgBox MyNameSpace.CurrentUser

Thanks very much!
 
N

neo [mvp outlook]

This property is not exposed in the Outlook Object Model (OOM), you need to
use collaboration data objects 1.21 (CDO) to get this property. Depending
on how far you are into patching Office/Outlook 2000, you also might want to
give Redemption (http://www.dimastr.com/redemption/) a try. It does get
around the enhanced security rolled into the OOM and CDO.

/neo
 
Top