Macro to detect manual style overrides (e.g. StyleName + Bold)

H

hschmeding

Hello,

I need a diagnostic macro that detects manual style overrides in a
document.
These style overrides are shown in the Styles and Formatting task pane
as "<StyleName> + Bold", for example, if 'Formatting in use' is
selected.
Apparently, they do not belong to the Styles collection, but I don't
know how to address them. Does anybody know how I could list them using
a macro?

Thanks in advance
Heike
 
J

Jezebel

For an alternative method: Make a copy of the document. Accept all changes.
Select all and reset the styles. Now review formatting changes.
 
H

hschmeding

Thanks for your suggestion, but it does not solve my problem.
I need some kind of VBA code to automatically detect manual formatting
in a first step.
In a second step, the macro has to distinguish between allowed
overrides (e.g. character formatting + Bold, + Italic) and unallowed
overrides (e.g. + Space Before) that should then be reset to the
original style.
 
J

Jezebel

What's the problem about using VBA for the purpose? Step through the
changes, check what's changed.
 
H

hschmeding

The reason why I'm looking for an automatic approach is that we use a
template with approx. 60 styles and we have to check a few hundred
documents for unallowed manual formatting that would undermine html
output.
Of course, I could check all documents manually, using the Styles and
Formatting task pane, but I would prefer an automatic method...
 

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