Outlook Adress Fields

G

George

Hi

I have a small program which retrieves addresses
from Outlook. Is it correct, that only the one address
can be ex-/imported, for which the option "postal
address" (or similar) is activated in Outlook?

Or with other words: Is there a possibility to
retrieve *all* three addresses ("privat", "bunisess"
and "others") so a user can choose (f.e. in a
Word form/dialog) which address he wants
to import in his Word document.

Many thanks for help.

Best Regards, George
 
G

Graham Mayor

The list of fields and a method of extracting data from Outlook using vba is
detailed at http://www.gmayor.com/Macrobutton.htm
The page also shows a method of creating a contact in Outlook using Word
vba. I have not looked to see how much of a stretch it would be to edit a
contact to change the postal address to one of the other addresses, but it
looks like something that might make an interesting addition to the page
when I can find time to play around. You may find more information at
http://www.slipstick.com/
If you want access to *all* the fields then you need to start from Outlook
mail merge.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Doug Robbins - Word MVP

Suggesting how your "small program" might be modified to achieve what you
are after may be possible if you showed us the code that you are presently
using.

With a reference to the appropriate version of the Outlook Object Library as
code such as the following:

Dim oApp As Outlook.Application
Dim oNspc As NameSpace
Dim oItm As ContactItem

it is possible to get all of the attributes of the oItem ContactItem such as
each of the individual components of the Business Address, the Home Address,
the Mailing Address, and the Other Address (as well as the spouse's name if
that is really what you are interested in)


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
G

George

Dear Graham and Dear Doug

Many thanks for your fast help. I try to
adapt your suggestions.

Best Regards and thanks, George
 

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