Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Inserting Outlook address into Word document
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 |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Inserting Outlook address into Word document
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 -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org TimH wrote: 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
take yet another lesson from wordperfect "reveal codes" | Microsoft Word Help | |||
hard space between words. | Microsoft Word Help | |||
Word applies direct format on File open | Microsoft Word Help | |||
Inserting address from Outlook contact list on envelope in Word 20 | Microsoft Word Help | |||
In Word, how can I see all files (*.*) in "save as"? | New Users |