Automatically Update Styles

D

DebbiePartridge

Hi

I have a template (as opposed to a document) which has th
'Automatically update document styles' box checked. The problem is
just don't seem to be able to get rid of it. I open the templat
-Tools, Templates and Addins, un-check the option, click OK - click o
Tools, Templates and Addins again and the darned thing's still there.

Can anyone tell me what I am missing, please? I'm sure it's somethin
simple and I'm just not thinking straight.

Thanks in advance
Debbi
 
S

Shauna Kelly

Hi Debbie

Try this. File > Open. Open your template. Tools > Templates and
Add-ins. Un-check the box. In your document, press space bar and then
backspace. This will "dirty" the template, so Word will think it's worth
saving. Now, File > Save.

OK?

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
D

Debbie Partridge

Hi Shauna

Thank you for that suggestion. Unfortunately it didn't
do the trick. I have found a solution though:

Open the template

Add the following code:

Sub Remove_It()
ActiveDocument.UpdateStylesOnOpen = False
End Sub

Run the macro

Delete the macro

Save the template

Many thanks for your help.

D
 
S

Stefan Blom

Thank you for the insight.

Earlier, I thought that the "Automatically update document
styles" setting of the Tools>Templates and Add-ins dialog
box could not be saved to a template, and thus could not
be inherited by documents based on a template, unless you
did a File>Save As instead of a File>New for document
creation. You have revealed that it is partially possible,
namely, through the use of VBA.

Stefan Blom
 
J

Jean-Guy Marcil

Hi Stefan,

Actually Stefan there is a way to do that without a macro.

The problem is that the "Automatically update document styles" setting does
not work for templates... How can a template updates its styles from another
template? It can't!

So, create a blank document, check the "Automatically update document
styles" setting (while it is a document, so that setting can be changed as
we want), then do a "Save as..." template. You will find that the
"Automatically update document styles" setting is now forever checked for
that template. You cannot change that setting anymore, if you uncheck it, it
comes right back. If, OTOH, you had unchecked the "Automatically update
document styles" setting before creating the template, you cannot set it for
that template anymore. This was Debbie's problem. She had created a template
with this option checked when she did the first " Save as...", and then she
was stuck with it.

Once the setting is set prior to creating the template, it sticks and cannot
be changed through the Templates and add-ins... dialog. You need VBA after
that if you want to change it, as Debbie discovered.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
S

Stefan Blom

I didn't think about File>Save As (to "Document Template")
to enable the "Automatically update document styles"
setting for templates. Thank you for pointing this out!

Isn't it very annoying that you can set the option from
the user interface but that there is no way to get rid of
it (besides using VBA)? Especially for inexperienced
users, who might be reluctant to use VBA, this fact could
cause big problems.

Stefan Blom
 
K

Klaus Linke

Stefan Blom said:
I didn't think about File>Save As (to "Document Template")
to enable the "Automatically update document styles"
setting for templates. Thank you for pointing this out!

Isn't it very annoying that you can set the option from
the user interface but that there is no way to get rid of
it (besides using VBA)? Especially for inexperienced
users, who might be reluctant to use VBA, this fact could
cause big problems.


Yes, and I've seen this problem a few times over the last years. I have
tried to submit a bug report about two years ago, but it probably vanished
in a black hole. Probably the bug is another one of the species that
magically become "by design" and stay around in each new version.

Greetings,
Klaus
 

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