Hello,

In Word, I have created an macro with a dialog box which
allows a user to call up an outlook contact. Is there a
way to write code which selects specific fields from the
Outlook contact to bring up in Word? i.e. Address,
business telephone number, etc.?

Much appreciation,

Kurt

Re: Outlook and Word integration by Perry

Perry
Sun Nov 14 18:19:51 CST 2004

Look at the GetAddress() function
(if below URL breaks into two lines: it's one address ...)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd10/html/womthgetaddress.asp


To get all a description of all the properties, look below URL
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbawd10/html/womthaddaddress.asp

Krgrds,
Perry

"kurt" <anonymous@discussions.microsoft.com> schreef in bericht
news:579a01c4ca57$2feca560$a401280a@phx.gbl...
> Hello,
>
> In Word, I have created an macro with a dialog box which
> allows a user to call up an outlook contact. Is there a
> way to write code which selects specific fields from the
> Outlook contact to bring up in Word? i.e. Address,
> business telephone number, etc.?
>
> Much appreciation,
>
> Kurt



Re: Outlook and Word integration by kurt

kurt
Thu Nov 18 14:28:05 CST 2004

Thanks Perry for the reply.

I'm not sure how to go about modifying my code with the
information from the site you suggested.

My current code is:
WordBasic.InsertAddress

This activates the Outlook integration which allows me to
select a contact from my contact list. Can you help me
out with the codes to force the fields imported from
Outlook to include the name, company name, address, city,
state and zip, and to omit United States of America if it
is in the contact?

Much thanks!
Kurt

>-----Original Message-----
>Look at the GetAddress() function
>(if below URL breaks into two lines: it's one address ...)
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbawd10/html/womthgetaddress.asp
>
>
>To get all a description of all the properties, look
below URL
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbawd10/html/womthaddaddress.asp
>
>Krgrds,
>Perry
>
>"kurt" <anonymous@discussions.microsoft.com> schreef in
bericht
>news:579a01c4ca57$2feca560$a401280a@phx.gbl...
>> Hello,
>>
>> In Word, I have created an macro with a dialog box which
>> allows a user to call up an outlook contact. Is there a
>> way to write code which selects specific fields from the
>> Outlook contact to bring up in Word? i.e. Address,
>> business telephone number, etc.?
>>
>> Much appreciation,
>>
>> Kurt
>
>
>.
>