Macro to assign styles?

S

Stacey

Is it possible to write a macro in Word 2000 to assign
styles in a document? For example, if a client gives me an
unformatted document and I want to assign "Header 1" to
every line that's 14pt/all caps/bold italic/12 points
after/keep with next, "Header 2" to every line that's
12pt/u&lc/bold/6 points after, etc., is that possible? Any
tips to automate formatting super-long documents are
helpful. I spend an inordinate amount of time clicking the
cursor on a line and assigning a style...even with a
keyboard shortcut, it takes a long time.
 
C

Charles Kenyon

This may be a reason to upgrade to Word 2003. This can be done with a macro,
but what if the formatting misses one of your criteria such as "keep with
next?"

Otherwise, you could use replace to replace the formatting with a style.
 
S

Suzanne S. Barnhill

You can use Find and Replace to search for specific formatting and replace
it with a specific style. If you had Word 2002 or above, it would be even
easier, as later versions allow you to select all instances of specific
formatting.
 
C

Clive Huggan

Stacey,

Suzanne's and Charles's advice gives the most efficient approach. My comment
relates to when I'm down to the last "unfixable" instances and applying a
style manually is unavoidable: I find that once I have applied a particular
style, it's easy to re-do the last action by hitting the F4 key (or Ctrl-y)
than to re-key the style with its particular keyboard shortcut.

Clive Huggan
Canberra, Australia
===================
 

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