# Outlook 2002 and custom forms

**URL:** <https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676>\
**Category:** Factual Questions\
**Created:** [October 31, 2003, 4:42pm UTC](https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676 "2003-10-31T16:42:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubes](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rubes](https://boards.straightdope.com/u/rubes)\
**Post date:** [October 31, 2003, 4:42pm UTC](https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676/1 "2003-10-31T16:42:50Z")

</div>

Uggh! I have created some custom forms with vb script inside of them, and one of the things I do, is check to see who the user is that is logged into the system and use their data to autofill some areas, such as name, phone number etc. This works fine in Outlook2000, however in Outlook 2002, I receive the error message:

A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?

If this is unexpected, it may be a virus and you should choose NO.

allow access for x minutes.  
How can I get Outlook2002 to TRUST my form, so that users aren’t bothered by this?

This form is currently stored in the organizational forms library, but I am not adverse to placing it in a public folder if that will solve the problem

---

<div class="post-metadata">

**Author:** ![larsenmtl](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@larsenmtl](https://boards.straightdope.com/u/larsenmtl)\
**Post date:** [October 31, 2003, 5:47pm UTC](https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676/2 "2003-10-31T17:47:12Z")

</div>

Microsoft’s answers:

[http://support.microsoft.com/default.aspx?scid=kb;en-us;329765&Product=ol2002](http://support.microsoft.com/default.aspx?scid=kb;en-us;329765&Product=ol2002)

[http://support.microsoft.com/default.aspx?scid=kb;en-us;821679&Product=ol2002](http://support.microsoft.com/default.aspx?scid=kb;en-us;821679&Product=ol2002)

---

<div class="post-metadata">

**Author:** ![rubes](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rubes](https://boards.straightdope.com/u/rubes)\
**Post date:** [October 31, 2003, 6:00pm UTC](https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676/3 "2003-10-31T18:00:13Z")

</div>

thanks, however, is this stating that there is no way around my specific error? It appears that the user will always see this, and have to hit yes and choose a time.

I don’t think that’s going to go over too well

---

<div class="post-metadata">

**Author:** ![larsenmtl](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@larsenmtl](https://boards.straightdope.com/u/larsenmtl)\
**Post date:** [October 31, 2003, 6:18pm UTC](https://boards.straightdope.com/t/outlook-2002-and-custom-forms/210676/4 "2003-10-31T18:18:03Z")

</div>

Depending on your code, the first link does have sample code that doesn’t raise the security warning:

> [@](#):
>
> WORKAROUND  
> To work around this issue, use the second code example in this section.
> 
> For example, this Visual Basic Scripting (VBS) Language code causes the security prompt to appear: Set ol = CreateObject(“Outlook.Application”)  
> Set AL = ol.session.addresslists(“Global Address List”)  
> Set AE = AL.addressEntries(1)  
> MsgBox AE.address
> 
> The following code works around the issue by causing a persistent reference to the established Outlook session, and therefore does not raise the security prompt: Set ol = CreateObject(“Outlook.Application”)  
> Set session = ol.session  
> Set AL = ol.session.addresslists(“Global Address List”)  
> Set AE = AL.addressEntries(1)  
> MsgBox AE.address
