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

New Outlook Distribution List Location



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 4th 10, 10:26 PM posted to microsoft.public.outlook.program_vba
scottb2
external usenet poster
 
Posts: 9
Default New Outlook Distribution List Location


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  
Old March 4th 10, 10:59 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default New Outlook Distribution List Location

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  
Old March 5th 10, 10:29 PM posted to microsoft.public.outlook.program_vba
scottb2
external usenet poster
 
Posts: 9
Default New Outlook Distribution List Location


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
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
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


All times are GMT +1. The time now is 09:04 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.