how can we avoid security popup in Outlook 2003?

N

Nadeem

We are using a macro to send mails to users from Outlook 2003. We want to
avoid the security popup which asks to allow/disallow for max of 10 mins.

We are using Recipients.add().

Please help.

Regards
 
S

Sue Mosher [MVP-Outlook]

An Outlook macro? Then you didn't construct it correctly. All objects need to derive from the intrinsic Application object in Outlook VBA.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
N

Nadeem

Sue,
thanks for the rapid response.
our macro displays a security warning on the following line. is there a
workaround for this?
 
S

Sue Mosher [MVP-Outlook]

Repeating: All objects need to derive from the intrinsic Application object in Outlook VBA. Show how you instantiate objOutlookRecip and all of its parent objects.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
N

Nadeem

Sue,

Sorry abt the repetition. following the part of the code for sending email.

Nadeem

----
 
S

Sue Mosher [MVP-Outlook]

This is your problem:

Set objOutlook = CreateObject("Outlook.Application")

To avoid security prompts, you must use the intrinsic Application object. You can do this by changing the above statement to:

Set objOutlook = Application


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top