Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Acces to Outlook Email contact address (http://www.outlookbanter.com/outlook-vba/61261-acces-outlook-email-contact-address.html)

kaos November 15th 07 09:53 PM

Acces to Outlook Email contact address
 
Hi, I use this code in visual basic to acces to the contact information

Dim oItems As Outlook.Items
Set oItems = cContacts.Items

Dim oCt As Outlook.ContactItem

Set oCt = oItems.GetFirst

var= oCt.Email1Address

But it appear a prompt message that required the autorization to do this,
how can I avoid this mesagges?? Its possible???


Ken Slovak - [MVP - Outlook] November 15th 07 11:40 PM

Acces to Outlook Email contact address
 
See http://www.outlookcode.com/article.aspx?id=52 for your options.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"kaos" wrote in message
...
Hi, I use this code in visual basic to acces to the contact information

Dim oItems As Outlook.Items
Set oItems = cContacts.Items

Dim oCt As Outlook.ContactItem

Set oCt = oItems.GetFirst

var= oCt.Email1Address

But it appear a prompt message that required the autorization to do this,
how can I avoid this mesagges?? Its possible???



Sue Mosher [MVP-Outlook] November 15th 07 11:42 PM

Acces to Outlook Email contact address
 
See http://www.outlookcode.com/article.aspx?ID=52 for your options with regard to the "object model guard" security in Outlook 2000 SP2 and later versions.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"kaos" wrote in message ...
Hi, I use this code in visual basic to acces to the contact information

Dim oItems As Outlook.Items
Set oItems = cContacts.Items

Dim oCt As Outlook.ContactItem

Set oCt = oItems.GetFirst

var= oCt.Email1Address

But it appear a prompt message that required the autorization to do this,
how can I avoid this mesagges?? Its possible???



All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com