Hello,
I'm using
Set mOLApp = CreateObject("Outlook.Application")
Set mNameS = mOLApp.GetNamespace("MAPI")
MsgBox "User: " & mNameS.CurrentUser.Name
to get the active user's name. But it always displays an security
message asking permission to access email addresses in Outlook. How can
I do to not appear this message?
Thanks in advance,
Ottoni.
Sue Mosher [MVP-Outlook] - 18 Jul 2005 19:02 GMT
See http://www.outlookcode.com/d/sec.htm for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hello,
>
[quoted text clipped - 12 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
John Riddle - 18 Jul 2005 19:10 GMT
What version of Outlook are you using? Is this an Exchange Organization?
John
Hello,
I'm using
Set mOLApp = CreateObject("Outlook.Application")
Set mNameS = mOLApp.GetNamespace("MAPI")
MsgBox "User: " & mNameS.CurrentUser.Name
to get the active user's name. But it always displays an security
message asking permission to access email addresses in Outlook. How can
I do to not appear this message?
Thanks in advance,
Ottoni.