Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Word / February 2006



Tip: Looking for answers? Try searching our database.

subsituting style sheets in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pete@denlypraill.co.uk - 22 Feb 2006 16:29 GMT
Hi, I have documents that have been formatted using custom style
sheets. These need to be changed to a new set - like for like. I have
looked in 'find and replace' and see you can select style as part of
the critieria for searching but how can I change just the style sheets
throughout the document?

Its not just one document but lots and needs to be done easily.

Pete
matt neuburg - 22 Feb 2006 17:15 GMT
> Hi, I have documents that have been formatted using custom style
> sheets. These need to be changed to a new set - like for like. I have
> looked in 'find and replace' and see you can select style as part of
> the critieria for searching but how can I change just the style sheets
> throughout the document?

If the styles are truly styles, it's easy. Start by creating a new
template (the "set"), where the names of the styles match the names
already used in the document (but of course the details how the styles
look may be different). Now simply tell each document to use it - choose
Tools > Template and Add-Ins and attach the new template. If you check
the Update checkbox, the new styles will be substituted for the old
ones, en masse. m.

Signature

matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/
Tiger - http://www.takecontrolbooks.com/tiger-customizing.html
AppleScript - http://www.amazon.com/exec/obidos/ASIN/0596005571
Read TidBITS! It's free and smart. http://www.tidbits.com

John McGhie [MVP - Word and Word Macintosh] - 23 Feb 2006 11:43 GMT
Hi Pete:

The style sheet for a Word document is stored internally.  It is copied from
the template from which the document was created when the document is
created.  It can be updated from the same or a different template at any
time.  Before you begin, look up "Templates" in the Word Help, and read it
carefully.

If the template the document was created from is anything other than Normal
template, the document will remain attached to the template.  If the
documents are still attached to Normal template, you need to open each one
and attach it to a template containing the correct style definitions.

Prepare a template with the new styles first, then use Tools>Templates and
Add-ins>Attach to attach the new template to each document.  When you do
this, look for the  "Automatically update style on open" setting on that
dialog and turn it ON.  The styles in each document will update instantly
when you switch that setting ON.

You can leave Automatically update switched ON, provided none of the styles
in the document apply numbering.  If you do leave it on, those documents
will automatically update their styles next time you open each one.

However, if any of your styles apply numbering, switch that setting off
again immediately, because if you leave it on it resets the numbering each
time.

If your documents are all already attached to a template and have their
"Automatically update styles on open" setting left on, then all you need to
do is update the styles in the attached template.  All documents will get
the new settings next time they are opened.

You have two choices:  You can either prepare a new template with the
updated styles, then open each document and Attach it to the new template,
and toggle its update styles setting.

Or you can prepare the new template, then rename it to match the old
template name exactly, and put it in the same folder.

I should note that it is rare in a commercial setting to find Word documents
still attached to their templates.  It is even rarer to find documents that
have been created carefully enough so that the formatting doesn't fall apart
if you batch-update the styles :-)

That's the way Word is designed to work, in a professional documentation
operation.  But it happens so rarely these days that I doubt if you will
ever see it, except in a professional writing workgroup.

If you have more than a few hundred documents to update, you can make a VBA
macro to do this as a batch.  Get back to us if you need assistance with
that.

Hope this helps

On 23/2/06 3:29 AM, in article
1140625782.889770.86790@g14g2000cwa.googlegroups.com,

> Hi, I have documents that have been formatted using custom style
> sheets. These need to be changed to a new set - like for like. I have
[quoted text clipped - 5 lines]
>
> Pete

Signature

Please reply to the newsgroup to maintain the thread.  Please do not email
me unless I ask you to.

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

pete@denlypraill.co.uk - 24 Feb 2006 09:01 GMT
Thanks for your helpful answer.

The document are no longer attached to the template from which they are
made. One of the major changes to the styles sheets is their names.
They have been changed to allow a group of authors to understand them
better when updating the document.

Does the auto updating rely on the style sheet name being the same?

Many thanks

Pete
JE McGimpsey - 24 Feb 2006 13:01 GMT
> The document are no longer attached to the template from which they are
> made. One of the major changes to the styles sheets is their names.
> They have been changed to allow a group of authors to understand them
> better when updating the document.
>
> Does the auto updating rely on the style sheet name being the same?

Yes, it does.

However, you can do a Find/Replace on style names. In the Replace
dialog, click the blue triangle to reveal more options, if necessary.
Select the "Find what:" combobox. In the Find section, choose "Style"
from the "Format" dropdown. Choose the style you want to replace. Select
the "Replace with:" combobox. Select the style to replace it.

Both comboboxes should be blank. Click Replace All.

You could easily record a macro to do this for multiple docs.
John McGhie [MVP - Word and Word Macintosh] - 25 Feb 2006 07:28 GMT
Hi Pete:

For Style updating to work "Automatically", yes, the template name must
remain unchanged (as must the path).

However, if you do the following:

1)  Open the document

2)  Tools>Templates and Add-Ins>Attach... And point to the new template

3)  Set "Automatically update" to TRUE

4)  Save and close

You will accomplish the same thing: this switches the template to the new
name and forces Word to import all of the style definitions from the new
template, overwriting any that currently exist in the document.

You can automate this from VBA or AppleScript.  The style definitions will
update instantly.

Note my earlier caution: if the users didn't know how to use styles and
filled the documents with direct formatting, updating the styles will have a
mixed and undefined effect on existing documents.

Cheers

On 24/2/06 8:01 PM, in article
1140771715.220381.16490@i40g2000cwc.googlegroups.com,

> Thanks for your helpful answer.
>
[quoted text clipped - 8 lines]
>
> Pete

Signature

Please reply to the newsgroup to maintain the thread.  Please do not email
me unless I ask you to.

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.