PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Program access to Outlook gives warning messages

Reply

Program access to Outlook gives warning messages

 
Thread Tools Rate Thread
Old 02-03-2005, 07:25 PM   #1
=?Utf-8?B?eWtmZmM=?=
Guest
 
Posts: n/a
Default Program access to Outlook gives warning messages


I wrote some vba program from say Excel environment to automate Outlook. The
functions are, such as:
1) to automate sending reports via Outlook email client
2) to extract email data from specific folder of Outlook

To run the programs in one PC (w2k machine, nothing special), they all run
fine, no warning messages at all. BTW, Outlook normally extracts emails from
an Exchange server.

But when I run it in another machine (wxp, and everything seems the same as
in the first machine), it gives me a message "A program is trying to
automatically sending emails on your behalf, do you want to allow this (yes,
no) when running the first function.

When the second function is run on the second machine, it gives the warning:
a program is trying to access email-address stored in outlook (which my
program doesn't), do you want to allow this? If this is unexpected, choose
no... and then my choice to allow access for my specified time in minutes.

Who knows what is happening? The outlook of the second machine is 2002.
Can't remember for the first one..

  Reply With Quote
Old 02-03-2005, 07:42 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Program access to Outlook gives warning messages

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.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"ykffc" <ykffc@discussions.microsoft.com> wrote in message
news:39651474-0004-48BD-AA5F-30C5EB6A2D77@microsoft.com...
>I wrote some vba program from say Excel environment to automate Outlook.
>The
> functions are, such as:
> 1) to automate sending reports via Outlook email client
> 2) to extract email data from specific folder of Outlook
>
> To run the programs in one PC (w2k machine, nothing special), they all run
> fine, no warning messages at all. BTW, Outlook normally extracts emails
> from
> an Exchange server.
>
> But when I run it in another machine (wxp, and everything seems the same
> as
> in the first machine), it gives me a message "A program is trying to
> automatically sending emails on your behalf, do you want to allow this
> (yes,
> no) when running the first function.
>
> When the second function is run on the second machine, it gives the
> warning:
> a program is trying to access email-address stored in outlook (which my
> program doesn't), do you want to allow this? If this is unexpected,
> choose
> no... and then my choice to allow access for my specified time in minutes.
>
> Who knows what is happening? The outlook of the second machine is 2002.
> Can't remember for the first one..
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off