Error when accesing Outlook Contacts via VBA

  • Thread starter Thread starter Juan
  • Start date Start date
J

Juan

Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
There are multiple solutions. You have to pick which one is most appropriate for you:

-- living with the prompts
-- recoding with Redemption
-- upgrading to Outlook 2003
-- using Express ClickYes (not secure unless you invoke it programmatically)
-- getting the Exchange administrator to loosen security (unlikely)

I use Redemption myself.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Juan said:
Thanks, Sue, but I don´t see a solution there? Did I just not understand
what´s in there, or there really isn´t a solution?


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

Juan said:
Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
Sue, we don´t have Exchange... just a mailbox. The contacts are in the
private pst of the user.
What is Redemption? Sorry for not knowing... anyway, the macro has been
written, not recorded. does it make any difference?

Again, thanks.

"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
There are multiple solutions. You have to pick which one is most appropriate
for you:

-- living with the prompts
-- recoding with Redemption
-- upgrading to Outlook 2003
-- using Express ClickYes (not secure unless you invoke it programmatically)
-- getting the Exchange administrator to loosen security (unlikely)

I use Redemption myself.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Juan said:
Thanks, Sue, but I don´t see a solution there? Did I just not understand
what´s in there, or there really isn´t a solution?


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

Juan said:
Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
As the page I suggested explains, Redemption is a third-party programming library that allows you to access Outlook objects without triggering security prompts. It is very easy to write code for. The Redemption web site provides many examples.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Juan said:
Sue, we don´t have Exchange... just a mailbox. The contacts are in the
private pst of the user.
What is Redemption? Sorry for not knowing... anyway, the macro has been
written, not recorded. does it make any difference?

Again, thanks.

"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
There are multiple solutions. You have to pick which one is most appropriate
for you:

-- living with the prompts
-- recoding with Redemption
-- upgrading to Outlook 2003
-- using Express ClickYes (not secure unless you invoke it programmatically)
-- getting the Exchange administrator to loosen security (unlikely)

I use Redemption myself.
Juan said:
Thanks, Sue, but I don´t see a solution there? Did I just not understand
what´s in there, or there really isn´t a solution?


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

Juan said:
Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
Oh, Ok, I didn´t see that. I think I´m going to go with Redemtion myself.
Thanks for the tip.

Still, I don´t get why it works in my machine, and others, but not in one or
two, but the fact is that we´ll have to use Redemtion.

Thanks, from Spain


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
As the page I suggested explains, Redemption is a third-party programming
library that allows you to access Outlook objects without triggering
security prompts. It is very easy to write code for. The Redemption web site
provides many examples.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Juan said:
Sue, we don´t have Exchange... just a mailbox. The contacts are in the
private pst of the user.
What is Redemption? Sorry for not knowing... anyway, the macro has been
written, not recorded. does it make any difference?

Again, thanks.

"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
There are multiple solutions. You have to pick which one is most appropriate
for you:

-- living with the prompts
-- recoding with Redemption
-- upgrading to Outlook 2003
-- using Express ClickYes (not secure unless you invoke it programmatically)
-- getting the Exchange administrator to loosen security (unlikely)

I use Redemption myself.
Juan said:
Thanks, Sue, but I don´t see a solution there? Did I just not understand
what´s in there, or there really isn´t a solution?


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

Juan said:
Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
Undoubtedly, they have different builds of Outlook.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Juan said:
Oh, Ok, I didn´t see that. I think I´m going to go with Redemtion myself.
Thanks for the tip.

Still, I don´t get why it works in my machine, and others, but not in one or
two, but the fact is that we´ll have to use Redemtion.

Thanks, from Spain


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
As the page I suggested explains, Redemption is a third-party programming
library that allows you to access Outlook objects without triggering
security prompts. It is very easy to write code for. The Redemption web site
provides many examples.
Juan said:
Sue, we don´t have Exchange... just a mailbox. The contacts are in the
private pst of the user.
What is Redemption? Sorry for not knowing... anyway, the macro has been
written, not recorded. does it make any difference?

Again, thanks.

"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
There are multiple solutions. You have to pick which one is most appropriate
for you:

-- living with the prompts
-- recoding with Redemption
-- upgrading to Outlook 2003
-- using Express ClickYes (not secure unless you invoke it programmatically)
-- getting the Exchange administrator to loosen security (unlikely)

I use Redemption myself.
Juan said:
Thanks, Sue, but I don´t see a solution there? Did I just not understand
what´s in there, or there really isn´t a solution?


"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el mensaje
See http://www.outlookcode.com/d/sec.htm for your options with regard to the
"object model guard" security in Outlook 2000 SP2 and later versions.

Hi everyone,

I have a macro for Outlook 2000 that sends an email to each and every
contact in a particular folder, with a personalized message. In my PC
works
OK. However, I copied the code in other PC, and everytime I the code
accesses a contact to send an email to that particular contact, Outlook
gives a message, something like "An external program is trying to access
outlook contacts. Do you want to allow access to this contact?" If I click
"Yes", the code keeps going OK, but I don´t want to be pressing YES
everytime... as I said, in other PC Outlook does not ask anything.

Any ideas???

Thanks, from Spain
 
Back
Top