Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2005

Tip: Looking for answers? Try searching our database.

Security

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frederico Ottoni - 18 Jul 2005 18:49 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.