A1VBCode Forums

COM addin for outlook 2003 : giving prob : a program is trying to access e-mail addresses you have


http://www.a1vbcode.com/vbforums/Topic13178.aspx

By chary_karani@yahoo.com - 7/27/2005

hi,
    iam creating a com addin for outlook,which creates a tool bar in outlook,

when u click on the button of my tool bar it will show the email id of currently selected mail in message box

its working well, but it outlook 2003 its giving problem, its giving security alert message
            "a program is trying to access e-mail addresses you have stored in outlook ...."

iam using references :
    micosoft outlook 9.0 object library
    micosoft office 9.0 object library
code is:
Set oMsg = Application.ActiveExplorer.Selection.Item(1)
                name = Trim(oMsg.SenderName)
                EmailId = Trim(oMsg.Reply.Recipients.Item(1).address)

how to avoid the security alert message box please help me