** Custom Style - can't apply to old docs **

W

Wai

Product: MS Word 2002
1.
Custom Style & Formatting are applied ONLY to new
documents.
Documents made previously will retain the old styles.

To the old documents, I need to apply my new styles to
them by:
- clicking on "Tools --> Templates and Add-ons" --
"Automatically update documents styles"

How can I automatically update the styles of all
documents (including the new and the old ones) BY DEFAULT?


Addition:
If you don't understand my above problem, please read the
following illustration.


** Day 1 **
Doc1 --:
A blank doc1 created
Create:
- Style A [old] = red, bold
- Style B = blue, bold
Save doc1
Close doc1
Save changes to normal.dot

** Day 2 **
Doc2 --:
A blank doc2 created
Modify:
- Style A [new] = red, italic
Save doc2
Close doc2
Save changes to normal.dot

** Day 3 **
Doc3 --:
A blank doc3 created
Save doc2
Close doc2



Problem:
Each doc contains non-standardized style formatting.

Doc1:
(As it was created ago, it kept old style formatting)
- Style A [old] = red, bold
- Style B = blue, bold

Doc2:
- Style A [new] = red, italic
- Style B = blue, bold

Doc3:
(New subsequent doc created followed the new style
formatting)
- Style A [new] = red, italic
- Style B = blue, bold



How could I solve these kinds of problems?
 
C

Cindy M -WordMVP-

Hi Wai,

There is no facility provided in Word for this. Possibly,
you could place a macro named AutoOpen in the template that
checks whether this option is activated for the document
being opened. If not, it's activated by the macro.
Custom Style & Formatting are applied ONLY to new
documents.
Documents made previously will retain the old styles.

To the old documents, I need to apply my new styles to
them by:
- clicking on "Tools --> Templates and Add-ons" --

How can I automatically update the styles of all
documents (including the new and the old ones) BY DEFAULT?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
W

Wai

Thanks for your reply.
So how can I make a macro which:
- check whether the style is update
- If not, ask for confirmation for updating the styles OR
just automatically update them
 
C

Cindy M -WordMVP-

Hi Wai,
So how can I make a macro which:
- check whether the style is update
- If not, ask for confirmation for updating the styles OR
just automatically update them
Something like this (watch out for line breaks caused by
newsgroup transmission!):

Sub AutoOpen()
With ActiveDocument
If Not .UpdateStylesOnOpen Then
If MsgBox("Do you want to force the styles" & _
"to update in this document?", vbYesNo) = vbYes Then
.UpdateStylesOnOpen = True
.UpdateStyles
Else
.UpdateStylesOnOpen = false
End If
End If
End With
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
C

Cindy M -WordMVP-

Hi Wai,
How can I set the marco to run automatically when I open
a file?
It's already named such that it should do that, assuming
you place it in your Normal.dot template (then it will
happen for every file), the template from which you're
creating a bunch of documents (for these documents, only)
or in the document itself (only for this document).

You have to select that file's "project" in the VB Editor,
insert a module (if it doesn't have one, already), then
paste it in.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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