I need a macro that changes the level in some text

S

S.e.b.

Hi all, I have a very long document (a techical specification) formatted in a
very bad manner.

There are a lot of paragraphs outlined as "level 1" (typically the tables
description or the figures description). I want to change this text to level
"body text only".

But the problem is I have to scann all the document (which hase thousends of
paragraphs and pages) and do it.

Can I do it with some VBA code? Can you help me please?

Is there a way to do this with a Word menu command? I have Word 2007.

Thank you very much
 
M

macropod

Hi S.e.b,

You can do this without a macro, using Find/Replace, selecting the appropriate Style Names as the Find/Replace parameters, via
More|Format|Style. If you've got a lot of documents, you could use the macro recorder to record & playback the process, but
otherwise it's hardly worth the effort.
 
S

S.e.b.

Hi Micropod,

thank you for your help, but this suggestion hasn't helped me to solve the
problem itself.
Anyway you suggested me a way to carry it out. A way I can do is to select
the text with the same stile and then change a style's proprierties.

Doing as yiu suggested me it has changed also all the text within the lines
to fix, whose style and level structure I didn't want to change, of course.

Thanks, S.e.b.
 
M

macropod

Hi S.e.b,

If the text characterisitcs have changes, that's because they don't conform to the Style you're changing the paragraph to. This is
actually as it should be, since the Style definition should be used to define those characteristics.

If you don't like the text characteristics when you change Styles, the approriate thing to do is to redefine them via the Style -or
choose a different Style.
 

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