how can we avoid security popup in Outlook 2003?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Sue,
thanks for the rapid response.
our macro displays a security warning on the following line. is there a
workaround for this?
 
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
 
Sue,

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

Nadeem

----
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top