Use the AddressEntry.DisplayType property to determine whether you have a contact or some other type of recipient. If it's a DL, you can try to return the DL by name from the default Contacts folder and then use its GetMember method to return each DL member as a Recipient.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Abdulfatah A. Reslan" wrote in message ...
Dear Sue Mosher
this is my code i can read mobile number for contact but how i can
retrieve contact form distribution list like in last question
Dim oDialog As SelectNamesDialog
Dim Recp As Recipient
Set oDialog = Application.Session.GetSelectNamesDialog
With oDialog
If .Display Then
For Each Recp In .Recipients
MsgBox Recp.AddressEntry.GetContact.MobileTelephoneNumber
Next Recp
End If
End With
"Abdulfatah A. Reslan" wrote:
Dear Sue Mosher
thank you very much for your help with your web site.
I started creation new form for sending SMS by select users or distribution
list
from address book I did every think programmatically and get all code and
help from
your web site and VBA for outlook 2007 help but i still have one problem i
can open address book and let customer select contact or distribution list to
send SMS
and then i can read mobile number for recipients for any contact but i cant
retrieve
the contact from distribution list to get his mobile number.
thank you again
"Sue Mosher [MVP-Outlook]" wrote:
The SMS Link functionality is not exposed in the Outook object model. IIRC, it's a separate add-in. If you want to develop a gateway that uses the SMS Link feature in Outlook 2007, you would need to contact Micrsooft about becoming a provider.
If your wireless provider supports sending messages to , that's just another email address to Outlook.
"Abdulfatah A. Reslan" wrote in message ...
Daer Sir:
in outlook 2007 their feature to send sms to mobile by using specific
sms provider which we can get it during mail account setup via web site
http://messaging.office.microsoft.com/Overview.aspx
my qusetion is if i can put my own gateway to sending SMS instead of
spsecific provider by using VBA for outlook 2007????