New Outlook Distribution List Location

S

scottb2

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 th
default "Contacts" folder ("Distribution List")? I have a folder objec
with the FullFolderPath where I want the DL to be saved, bu
DistListItem.SaveAs(fld.FullFolderPath, Outlook.OlSaveAsType.olTXT
gives me an error {"The operation failed."}. I can start Outlook an
manually get to the DL folder, though.

Thanks,
Scot
 
K

Ken Slovak - [MVP - Outlook]

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

scottb2

Works great! Thanks, Ken.

'Ken Slovak - [MVP - Outlook said:
;129796']DistListItem.SaveAs(fld.FullFolderPath,
Outlook.OlSaveAsType.olTXT) will
attempt to save that DL as a text file in the file system at the pat
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top