Re: Opening a Word Document from Within Entourage Causes both Apps to Hang

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John McGhie [MVP - Word] (john_at_mcghie.name)
Date: 03/26/04


Date: Sat, 27 Mar 2004 08:17:44 +1100

Hi Roger:

This responds to article
<1gb80qe.1qsl9jf1ycjmbkN%rm@rmfsnewsXL.fsnet.co.uk.invalid>, from "Roger
Morris" <rm@rmfsnewsXL.fsnet.co.uk.invalid> on 26/3/04 7:40 AM:

> What is meant by "log back in (or restart) after using it"?

I mean "Log off from OS X or reboot after you have run the macro." The
macro makes some changes that have flow-on effects throughout OS X and Word
and Entourage. It is not essential to restart, but you will get a smoother
run with less chance of a crash or hang if you do. Restarting or relogging
causes the computer to re-load everything into memory and to rebuild various
cache and temporary files is refers to a lot while it is operating.

> (if it's in Startup and runs every time Word starts)

It shouldn't be. That macro should be in your Normal template, which very
definitely should not be in Startup. If you do place the macro in a
template in Startup, the template will be loaded every time Word starts.
However the macro will not run unless you run it. If you *want* the macro
to run every time you start, then you need to change the macro name to
"AutoExec": so make the first line:

Sub AutoExec()

I do not recommend this. The macro makes large and invasive editing changes
to your Normal template. If your normal template is already large and full
of complex stuff, you are stressing the system and this may lead to a
corrupt Normal template. I would run the macro manually and only when you
need to. That is: whenever you find that your AutoText list gets out of
control. If you actually do not *want* the addresses in your AutoText list,
THEN you would want to run the thing every startup. It won't prevent them
being there, but it will ensure that you start the day with only one copy of
each in there!

> and
> If Word updates AutoTextEntries every 5 (?) minutes, what is the point
> of deleting the entries when it starts?

The bug seems to be that it does not "Update", it "Adds a new set each
time." This does not happen all the time: it seems there is some state the
AutoTexts can get into that prevents Word from "updating" each entry and
causes it to add each entry as a new entry each time.

We have had far fewer reports of this problem since a Word update was
released that seems to fix the problem. However for people who had the
problem before the update, they should either rename their Normal template
then throw away the old one, or run this macro to trim back their AutoText
list to get rid of the crud.

Once the problem has occurred (and we believe that it still can, even with
the updates all installed) your collection of AutoText Entries seems to keep
growing until it eventually overflows and destroys your Normal template.
That's the problem the macro was built to solve.

But it's certainly not a problem that will hit you every day. Keep the
macro around, but don't expect to need it more than once every couple of
months or so.

> Does Word store copies of Contact names in Normal (I don't see any in
> mine) or in another file or in memory while it is running?

Yes to all three!

If you have Entourage installed, and If you store your address list in
Entourage, and If you enable the feature, Word stores an AutoText in your
Normal Template for each entry in your Entourage address book. Every five
minutes or so, if the system is not busy, Word attempts to update this list.
While Word is running, the AutoText list is loaded into memory. The actual
list of addresses is stored by Entourage in your Entourage identity.

Hope this helps

-- 
Please respond only to the newsgroup to preserve the thread.
John McGhie, Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia.  GMT + 10 Hrs
+61 4 1209 1410, mailto:john@mcghie.name


Relevant Pages

  • Re: Autotext Contact entry fails
    ... ' Removes Contacts from Normal Template ... ' Macro written July 4 2002 by John McGhie ... For Each anAutoText In Application.NormalTemplate.AutoTextEntries ... > Any other suggestions on how to force Autotext to reimport all the contacts? ...
    (microsoft.public.mac.office.word)
  • Re: macro recorded in one document doesnt show up in a new docume
    ... If you fail ... Some company networks renew the normal template when you log in. ... Word MVP web site http://word.mvps.org ... Word 2007 and reopen it later, however, the Macro is no longer ...
    (microsoft.public.word.docmanagement)
  • Re: Screen view 100%
    ... It sounds like the changes your Normal template aren't being saved when you ... Try creating the macro again (you should be pretty good at this by now! ... automatically when you exit Word. ... MVP FAQ site: http://mvps.org/ ...
    (microsoft.public.word.newusers)
  • Re: Inserting Date
    ... In article, Daiya Mitchell ... Stick a CREATEDATE field in your Normal template? ... Come up with a macro to put a createdate field in the footer in a ...
    (microsoft.public.mac.office.word)
  • Re: Inserting Date
    ... as those are based on your Normal template and text in the Normal template will screw them up---and next year when you go to do a label you won't remember why it doesn't work. ... Save the CreateDate field as an autotext, and put it on the Header/Footer toolbar to enter it with less pain in each document. ... Come up with a macro to put a createdate field in the footer in a single-click, after putting the macro on a toolbar or assigning it a keyboard shortcut. ...
    (microsoft.public.mac.office.word)