By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 1,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

Creating an Outlook Distribution List in VB.Net

P: n/a
Hi all,

does anyone have any suggestions as to the steps
involved in creating a DL using VB.Net.

I have some Outlook automation experience
but I'm not sure what the objects are that I should
be creating. There is a distribution list item object,
but no dsitribution list object to contain the items!
Here's what I have so far:
Dim oApp As outlook.Application = New outlook.Application
Dim oNS As outlook.NameSpace = oApp.GetNamespace("MAPI")
oNS.Logon("Outlook", Missing.Value, False, True)
Dim oDistItem As outlook.DistListItem =
oApp.CreateItem(outlook.OlItemType.olDistributionL istItem)
Any help would be greatly appreciated.

Many thanks,

Jason.
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.