![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#2
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |