Hey! I am following the code from microsoft from this page: http://support.microsoft.com/kb/306108
This is what I have:
Public Sub GetMails(Item As Outlook.MailItem)
MsgBox "Mail message arrived: " & Item.SenderEmailAddress
MsgBox "Mail message arrived: " & Item.Subject
MsgBox "Mail message arrived: " & Item.Body
End Sub
I set a rule to run this macro on certain mails. What I get every time this script is run is a dialog nagging me about how a program is trying to access my mails. How can I get rid of this using VBA or is there any configuration option in Outlook I can turn off so that this does not appear?
I have googled for this and found some sites giving some code for C# and VB.net but none for VBA. Anyone knows how to fix this?
Thanks