Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2006

Tip: Looking for answers? Try searching our database.

Inserting Outlook address into Word document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TimH - 31 May 2006 19:11 GMT
Is it possible to insert an address from outlook into a word document and
then later on in the letter use the information from the input to display
the 'Company Name' or 'City'?

I've found some good sites describing how to insert the address in the form
I want, but can't figure out how to re-use the info later on in the document
without having to pick the address again...

Graham Mayor if you are out there I've pretty much used your ideas found at:
http://www.gmayor.com/Macrobutton.htm

Thanks
Tim
Graham Mayor - 01 Jun 2006 07:27 GMT
You can re-read the data from the same dialog without having to re-choose -
see the example
"Macro Code to insert name and address from Outlook (with title and
initial)" which reads each individual element and assigns them to variables.
You can assign these variables to docvariables or docproperties and use
docvariable or docproperty fields to place the content eg

ActiveDocument.CustomDocumentProperties.Add Name:="OutlookCompany", _
       LinkToContent:=False, Value:=strCode4, Type:=msoPropertyTypeString

Signature

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Is it possible to insert an address from outlook into a word document
> and then later on in the letter use the information from the input to
[quoted text clipped - 9 lines]
> Thanks
> Tim

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.