![]() |
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
|
|||
|
|||
![]() I have a folder hierarchy as follows: Public folders ...All Public Folders ......Dept .........Distribution List How do I create an Outlook Distribution List in a folder other than the default "Contacts" folder ("Distribution List")? I have a folder object with the FullFolderPath where I want the DL to be saved, but DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT) gives me an error {"The operation failed."}. I can start Outlook and manually get to the DL folder, though. Thanks, Scott -- scottb2 http://forums.slipstick.com |
Ads |
#2
|
|||
|
|||
![]()
DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT) will
attempt to save that DL as a text file in the file system at the path you're providing. If the folder is a contacts folder use folder.Items.Add(olDistributionListItem) where folder is your folder. The function will return a DL object. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "scottb2" scottb2.47bjfy@invalid wrote in message news:scottb2.47bjfy@invalid... I have a folder hierarchy as follows: Public folders ..All Public Folders .....Dept ........Distribution List How do I create an Outlook Distribution List in a folder other than the default "Contacts" folder ("Distribution List")? I have a folder object with the FullFolderPath where I want the DL to be saved, but DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT) gives me an error {"The operation failed."}. I can start Outlook and manually get to the DL folder, though. Thanks, Scott -- scottb2 http://forums.slipstick.com |
#3
|
|||
|
|||
![]() Works great! Thanks, Ken. 'Ken Slovak - [MVP - Outlook Wrote: ;129796']DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT) will attempt to save that DL as a text file in the file system at the path you're providing. If the folder is a contacts folder use folder.Items.Add(olDistributionListItem) where folder is your folder. The function will return a DL object. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "scottb2" scottb2.47bjfy@invalid wrote in message news:scottb2.47bjfy@invalid... I have a folder hierarchy as follows: Public folders ..All Public Folders .....Dept ........Distribution List How do I create an Outlook Distribution List in a folder other than the default "Contacts" folder ("Distribution List")? I have a folder object with the FullFolderPath where I want the DL to be saved, but DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT) gives me an error {"The operation failed."}. I can start Outlook and manually get to the DL folder, though. Thanks, Scott -- scottb2 http://forums.slipstick.com -- scottb2 http://forums.slipstick.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Outlook Distribution List Location | scottb2 | Outlook - General Queries | 1 | March 4th 10 06:39 PM |
embedded distribution list to new distribution list in outlook | Brad Tulin | Outlook - Using Contacts | 2 | October 22nd 08 02:20 AM |
Location of Distribution Lists in Contacts | William | Outlook - Using Contacts | 3 | January 3rd 08 10:49 PM |
Where distribution lists are saved on systems (folder location) | Sara B | Outlook - Using Contacts | 1 | September 18th 07 10:11 PM |