View Single Post
  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
ander163 ander163 is offline
external usenet poster
 
Posts: 2
Default AddressLayout not working

It is truly amazing to me that the designers make it so hard to insert an
address from Outlook Contacts into a letter in Word. Take an address -
insert it into a letter. For me, this is one of the most used fuctions of
the word processor. Gone in Word 2007 is the short list of 10 or so most
recently used names - that was useful.

First the Address Book function is buried and has to be added to the Quick
Access Toolbar - but I admit that complaint is true of a majority of the Word
functions. Second, the formatting of the address block using fields is also
hidden (good job with your explanation, Graham) and not easily found in
Microsoft support materials. And now the formatting definition is only
followed "sometimes". I'm using Word, I'm not checking it for bugs or
deciphering how it works. My experience is that once you do insert the
Address_Layout quick part into the document, then delete it, all addresses
that are inserted will format following that definition. It seems to work in
new documents until Word is closed, so it is a one-time function each time
you re-start Word. Until then, addresses come across with only NAME, STREET,
CITY-State-ZIP, COUNTRY fields.

My Address_Layout Quick Part is defined as a QuickPart, not an AutoText,
because when I defined it as an Autotext initially it had no effect. Perhaps
the problem was not the definition as Autotext (instead of Quick Part), but
instead this other functional problem discussed herein.

Finally, Graham, I need to pick and insert many addresses from Outlook into
a document, so I cannot add a macro to the document to grab the Outlook
address, as elegant as your macro is. Instead, I think I would have to have
a macro that adds your macro, then execute your macro each place and time I
need to insert and address into the word document I am creating.

For example, the document says:

The foregoing was mailed this date to:

After which I have to insert between 1 and 5 (or more) names and address
blocks.

Thanks, all for confirming it was not just my comptuer, my system, and
new-user mistakes.


"Graham Mayor" wrote:

I have been investigating further and think I may have got the measure of
this at last. It seems to work if you create the addresslayout in the
Building Blocks file, while Word remains open, but then if you close and
re-open Word (saving the building blocks file in the process) it no longer
works reliably. If instead of saving the entry in building blocks you save
it in normal.dotm (or move it via the building blocks organiser) then it
seems to remain working after you close and re-open Word.
I have tried a few times since to break it and it is holding so far.

I had already found that some of my macros wouldn't insert autotext entries
from building blocks but would from normal.dotm, which is what gave me the
idea to try it here.

All I need now is to be able to convince Word/Outlook that I live in Cyprus
and not the UK, so that it ignores Cyprus as a country and adds UK when
completing the addresses, but that has nothing to do with the problem in
hand.
--

Graham Mayor - Word MVP

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



Peter Jamieson wrote:
Hi Graham,

Sorry to disappoint :-) Yes, I've only really dabbled with this in
response to this particular question - it sounds as if you've had a
much more thorough look.

If the AddressLayout approach seems to work sometimes, then I suppose
it's either
a. still intended to be there (i.e. it's there "by design" in
Microsoft jargon) but doesn't work as intended all the time - in
which case I think the OP should really submit a support request to
set the wheels turning to get it fixed.
b. or intended to be there but perhaps is intended to work
differently from how we imagine (I have no idea how, but perhaps
again a support request would lead to an answer)
c. or perhaps not intended to be there but there are vestigial
remains, in which case the likely effect of a support request would
be to see the feature removed altogether at some point.

What happens with the addresses that don't work - do they come in as
they appear in the Outlook contact dialog box, or in some other format
altogether? Is there a discernible common factor of any kind?

Peter Jamieson


"Graham Mayor" wrote in message
...
I was hoping that your answer would have resolved this problem which
has been taxing me also, however it doesn't - at least not all of
the time. It seems to work only for some addresses? Until I can get
a handle on what the problem might be I have been recommending the
use of a macro to grab the address from Outlook and format it as
required. This is covered at http://www.gmayor.com/Macrobutton.htm
and is featured in the envelope templates that can be downloaded
from my web site, which do work in Word 2007.

--

Graham Mayor - Word MVP

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


Peter Jamieson wrote:
In the QuickParts/Building Blocks organiser, have you put the
AddressLayout entry in the AutoText Gallery. That seems to do the
trick here, assuming you are using the Address Book function (which
I had to put in the QAT).
Peter Jamieson

"ander163" wrote in message
...
In Word 2007, I have a Quick Parts entry defined for AddressLayout,
just like
I've been using for years in Word 2003. However, the Insert
Address function
from Outlook contacts, to insert a single address into a Word
document, does
not follow this format until after I insert the AddressLayout quick
part into
the document then delete it. Until I do that extra step, I only
get the default addresss block - without the Company and with the
Country. Any help
would be appreciated.