![]() |
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
|
|||
|
|||
![]()
Hi
I'm fairly new to VB so please bear with me if my methods are obscure! At work I have my own inbox and a shared mailbox which contains some group distribution lists. I'm trying to create a Macro that sends an e- mail to one of these distribtions lists, however, I'm struggling to add it to my e-mail. So far, I've tried the following piece of code... Dim myRecipient As DistListItem Set myRecipient = GetNamespace("MAPI").Folders.Item("Mailbox - Nimrod_operations_Team_mail (UK)").Folders.Item("Distribution Lists").Items("Test Distribution") With Application.CreateItem(olMailItem) .Recipients.Add (myRecipient) .Recipients.ResolveAll .Save .Display End With Yet, all this does is add the text 'Test Distribution' to the e-mail To: box and doesn't recognise it as a distribution list. Where do I go from here? Regards Jamie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding CC and BCC to distribution list | Rick | Outlook - Using Contacts | 1 | March 1st 07 11:02 AM |
Adding a contact to one or multiple distribution lists | Andy E | Outlook - Using Contacts | 4 | December 28th 06 08:21 PM |
Reminders List - Multiple Mailboxes | George | Outlook - Calandaring | 7 | September 1st 06 12:40 AM |
Adding mutliple distribution lists into a distribution list? | Abel | Outlook - Using Contacts | 2 | August 30th 06 06:51 PM |
Adding Members to a Distribution List | DeeW | Outlook - Using Contacts | 2 | January 24th 06 09:20 PM |