Macro to help with reformatting

J

Jacqui

I am reformatting a lot of documents from our old style to new. I am
repeatedly opening the organiser, copying the styles over from our
global template into the existing template, then searching and
replacing for normal and replacing it with my new body text style. I
tried to record a macro for this but can only manage to get it to work
for the existing template name. Any tips on how to amend this macro and
replace the existing template with Active Document?
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi Jacqui:

First, change your approach:

1) Attach the global template to each document with Automatically Update
Styles on Open switched ON,

2) Re-attach the template and this time switch Automatically update styles
OFF

3) The run your search replace.

Record that much, then edit the macro and replace the document name with
"ActiveDocument.FullName " (no quotes).

If you run into trouble, post the code (as text) and we'll fix it for you.

Cheers

I am reformatting a lot of documents from our old style to new. I am
repeatedly opening the organiser, copying the styles over from our
global template into the existing template, then searching and
replacing for normal and replacing it with my new body text style. I
tried to record a macro for this but can only manage to get it to work
for the existing template name. Any tips on how to amend this macro and
replace the existing template with Active Document?

--

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

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 

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