List of all Styles used and their specifications in XP

T

Toni

Anyone ever heard of creating some type of report (Word
XP) or listing of all styles currently in use in a
document as well as all the setting for each style? I
need to merge multiple different documents and would like
to know "ahead of time" each style that is used and how
it is identified in each document.
Thanks
Toni
 
K

Klaus Linke

Hi Toni,

You could check out "File > Print > Print what: styles".

Or you could cobble together some VBA macro that loops the styles ("For Each
myStyle In ActiveDocument.Styles"), checking if the style is ".InUse".
If you want to be sure that the style was used in the current document,
you'd have to use .Find to look for it.

The short "human-readable" overview is in myStyle.Description.
If the task offers itself for automatization, you might be able to use the
detailed info (.Type, .Name, .BuiltIn, .Font, .ParagraphFormat, ...) to
match corresponding styles in the docs you want to merge.
Say, if there is only one style with .ParagraphFormat.OutlineLevel=1 in
either doc, then you'd probably want to merge those two styles to the same
style in the merged doc (... even if these "Heading" styles are named and
defined differently).

Greetings,
Klaus
 

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