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

security window



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old November 14th 09, 11:36 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default security window

Your options depend on the type of application and Outlook version. See See
http://www.outlookcode.com/article.aspx?ID=52
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Curt" wrote in message
...
Have the following code. When used to send e-mails. I get a window for
each
e-mail saying it is being sent auto and do I want it to do this. How can I
have it send all e-mails auto without asking on each one.
Thanks for assistance

'Send E-Mails
Private Sub OptionButton9_Click()
OptionButton9.Value = False
UserForm4_Letters.Hide
Sheets("Data").Select
Dim OutApp As Object
Dim OutMail As Object
Dim cell As range
Application.ScreenUpdating = False
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
On Error GoTo cleanup
For Each cell In
Sheets("Data").Columns("K").Cells.specialcells(xlc elltypeconstants)
If cell.Value Like "?*@?*" Then
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = cell.Value
.subject = "Parade Reminder"
.Body = "Dear: Partcipant " & cell.Offset(0, -1).Value & vbNewLine &
vbNewLine & _
"The attachment is for FYI."
'You can add files also like this
.Attachments.Add ("\Parade\E-mail Attachment Letter.doc")
.Send
'Or use Display
End With
On Error GoTo 0
Set OutMail = Nothing
End If
Next cell
cleanup:
Set OutApp = Nothing
Application.ScreenUpdating = True
End Sub



 




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
Close Exchange security window DenisSSSS Add-ins for Outlook 3 September 4th 08 11:15 AM
Outlook 2007 - email sent - window remains in explorer but not visible in taskmanager 20080823 Outlook - Staying window after message sent (cropped).jpg (1/1) Jiri Pik Outlook - General Queries 3 August 31st 08 06:48 AM
Auto Close Security Window in Outlook [email protected] Outlook - General Queries 3 August 8th 07 11:10 AM
OE6 new message window opens behind main window. [email protected] Outlook Express 2 August 14th 06 10:09 PM
Distribution list window dosn't show the same as in contact window Rose Outlook - Using Contacts 5 February 26th 06 10:17 PM


All times are GMT +1. The time now is 03:43 PM.


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.