With what code? In what version of Outlook? 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
"Robin9876" wrote in message ...
When sending an email from VBA, the following security dialogs appear.
A program is trying to access e-mail addresses you have stored in
Outlook. Do you want to allow this?
Allow access for 1 minute. (plus other options).
Then
A program is trying to automatically send e-mail on your behalf.
Do you want to allow this?
Can this be changed so it is not prompt the user?