Macro to clean-up Formatting

P

Peter

I am working on a large document that had multiple authors and am left with
a formatting mess. There are numerous font styles used for normal text and
headers (e.g. Heading 1 has three font sizes etc).

Is there a macro out there that will search thru the document and set all
the normal text to a standard font size. Ideally it would work with headsers
and footers as well.


Thanks,

Peter
 
P

Peter

I have reposted this question in microsoft.public.word.vba.customizations
where I guess it should have been in the first place.
 
S

Suzanne S. Barnhill

Define the styles as you want them to be, then Ctrl+A, Ctrl+Q,
Ctrl+Spacebar.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
P

Peter

Thanks. Much easier than I expected.

Peter


Suzanne S. Barnhill said:
Define the styles as you want them to be, then Ctrl+A, Ctrl+Q,
Ctrl+Spacebar.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
W

ward

1) Assign shortcut keys to the styles you use most
frequently(e.g. body = CTRL-0, Heading1 = CTRL-1, Heading
2 = CTRL-2, etc.)

2) Swith to normal view

3) Define a 2 cm or so value for the "style area
width"(Tools-options-view-style area width). A column will
now appear in the normal view, telling you the style of
each paragraph

4) Using your shortcuts you should now be able to clean up
your formatting really quick.

regards
Ward
 
P

Peter

Thanks.

ward said:
1) Assign shortcut keys to the styles you use most
frequently(e.g. body = CTRL-0, Heading1 = CTRL-1, Heading
2 = CTRL-2, etc.)

2) Swith to normal view

3) Define a 2 cm or so value for the "style area
width"(Tools-options-view-style area width). A column will
now appear in the normal view, telling you the style of
each paragraph

4) Using your shortcuts you should now be able to clean up
your formatting really quick.

regards
Ward
 
J

John A. Kunecke

Well the previously state "solution" really is just
another way of doing it manually.

I would advise creating a style sheet that contains a set
of styles that meet your needs, including styles that
should be the same, but hve different names in the
different documents merely requires that you create a
style by that name, that is based on the desired actual
style.

Then by simply opening the documents, ensuring that
the "update document styles" checkbox is checked
(..Tools...Templates and Addins...[in Word 2k anyway])
then close the document, then reopen it...

Should make Word do the work for you.

In fact the only things that will leave out are:
1: unstylized items
2: header/footer size
3: document page and section formatting

As far as points 2 and 3 are concerned, creating a
document "fragment" with the desired page and section
formats, then cut and paste (I can make that a macro for
you, if you want) the document content (as well as the
header/footer content) is the only way to fix that level
of problem.

If you have a lot of unstylized content, go slap the
author...send me some samples and I'll write the macro
for you.

I have over 600 macros, of which about 40 fix similar
issues.

Let me know how I can help.
 
P

Peter

John,

Thanks for the offer to help. Do you have a website that I can get your
macros from?

Peter
 

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