![]() |
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 |
#1
|
|||
|
|||
![]()
All,
I have written some VBA to loop through the items in my Drafts folder and send each one. I am not very familiar with the Outlook object model, or their properties and methods. My first inclination was to "do something" with each item in the folder, but the Send method effectively removes the item from the folder. The code below seems to work well. If I have the correct understanding, items are indexed beginning at 1, so if my Drafts folder contained 30 items, the code will execute inside the loop until all messages are sent (.Count = 0), while assuring that an item is always in scope. Do Until myDrafts.Items.Count = 0 myDrafts.Items(1).Send Loop This group has a lot more experience than I have with Outlook VBA; is this the best way to do this ... to me, it just seems there may be a better option. Take care, Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Send Email from Draft Folder | DennyP | Outlook - General Queries | 11 | January 29th 10 02:18 PM |
Outlook Express 6 - Draft Email Icons on Desktop - Unable to use in draft form | [email protected] | Outlook Express | 1 | October 13th 06 11:58 AM |
Why do I have to hit send/receive to review new messages? | No3Sista | Outlook - Calandaring | 1 | October 12th 06 05:06 AM |
draft messages don't close when outlook closes | [email protected] | Outlook - General Queries | 1 | July 13th 06 04:57 AM |
Macro to Move Mail Messages from Draft folder to other folders | VBnovice | Outlook and VBA | 4 | June 14th 06 07:10 PM |