Insert info from Contact into Word Doc

S

Sammy

Hi,

I use the following code in Word to insert a name and address from my
Contacts folder, into a Word document:

If ofrmSelect.boxOutlook = True Then

Selection.GoTo what:=wdGoToBookmark, Name:="bkRecName"

WordBasic.InsertAddress


My question is, what if I just want to insert the Name, Phone Number or Fax
number into a Word document? Is there a way to do this? Any help is
appreciated!
 
K

Ken Slovak - [MVP - Outlook]

I have no idea about Word Basic, for that you'd be better off posting in a
Word group.

From the Outlook object model you'd get the contact from the Contacts folder
and then use the object model to get .FullName or one of the 17 phone number
fields (fax numbers are some of the phone fields).

For more Outlook programming information see http://www.outlookcode.com.
 
Top