A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 alert problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 27th 09, 04:58 PM posted to microsoft.public.outlook.program_vba
Henry
external usenet poster
 
Posts: 4
Default Outlook 2003 alert problem

How can I turn Outlook alerts off?

When I try to send an email from my Excel VBA program I get the following
alert.
"A program is trying to automatically send e-mail on your behalf. Do you
want to allow this?"
Yes, No or Cancel.

Is there a way to either turn off the alert or automatically answer Yes.

Relevent part of program:
---------------------------------------------
Set appOL = CreateObject("Outlook.Application")
Set appMess = appOL.CreateItem(olMailItem)

For cnt = 1 To 99
If ISLIKE(Cells(cnt, 12).Value, "*@*") Then 'does cell contain email
address?
appMess.To = "Valid.e-mail@address"
appMess.Subject = "tester"
appMess.Body = "test"
appMess.Send ------ this causes alert to show

End If
Next cnt

appMess.Quit
appOL.Quit
Set appOL = Nothing
Set appMess = Nothing

---------------------------

Henry


Ads
  #2  
Old April 27th 09, 06:45 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Outlook 2003 alert problem

See http://www.outlookcode.com/article.aspx?ID=52 for your options with
regard to the "object model guard" security.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Henry" wrote in message
...
How can I turn Outlook alerts off?

When I try to send an email from my Excel VBA program I get the following
alert.
"A program is trying to automatically send e-mail on your behalf. Do you
want to allow this?"
Yes, No or Cancel.

Is there a way to either turn off the alert or automatically answer Yes.

Relevent part of program:
---------------------------------------------
Set appOL = CreateObject("Outlook.Application")
Set appMess = appOL.CreateItem(olMailItem)

For cnt = 1 To 99
If ISLIKE(Cells(cnt, 12).Value, "*@*") Then 'does cell contain
email address?
appMess.To = "Valid.e-mail@address"
appMess.Subject = "tester"
appMess.Body = "test"
appMess.Send ------ this causes alert to show

End If
Next cnt

appMess.Quit
appOL.Quit
Set appOL = Nothing
Set appMess = Nothing

---------------------------

Henry



  #3  
Old April 27th 09, 08:28 PM posted to microsoft.public.outlook.program_vba
Henry
external usenet poster
 
Posts: 4
Default Outlook 2003 alert problem

Thanks Sue.

Sue Mosher [MVP] wrote:
See http://www.outlookcode.com/article.aspx?ID=52 for your options
with regard to the "object model guard" security.

"Henry" wrote in message
...
How can I turn Outlook alerts off?

When I try to send an email from my Excel VBA program I get the
following alert.
"A program is trying to automatically send e-mail on your behalf. Do
you want to allow this?"
Yes, No or Cancel.

Is there a way to either turn off the alert or automatically answer
Yes. Relevent part of program:
---------------------------------------------
Set appOL = CreateObject("Outlook.Application")
Set appMess = appOL.CreateItem(olMailItem)

For cnt = 1 To 99
If ISLIKE(Cells(cnt, 12).Value, "*@*") Then 'does cell contain
email address?
appMess.To = "Valid.e-mail@address"
appMess.Subject = "tester"
appMess.Body = "test"
appMess.Send ------ this causes alert to show

End If
Next cnt

appMess.Quit
appOL.Quit
Set appOL = Nothing
Set appMess = Nothing

---------------------------

Henry



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
alert for outlook 2003 Calendar joe Outlook - Calandaring 1 June 19th 08 02:24 AM
New email sound and desktop alert? OL 2003 99XJ Outlook - General Queries 1 August 17th 07 11:19 AM
Outlook 2003 lost show new mail alert Beemer Outlook - General Queries 7 March 6th 07 10:03 PM
Outlook 2003: No alert for conflicts with recurring meetings James.Brown Outlook - Calandaring 0 May 23rd 06 06:11 PM
outlook 2003 new mail desktop alert not working after reboot [email protected] Outlook - General Queries 0 May 4th 06 07:23 PM


All times are GMT +1. The time now is 04:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.