Re: Macro to detect manual style overrides (e.g. StyleName + Bold) by hschmeding
hschmeding
Tue Jun 27 06:29:36 CDT 2006
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...
Jezebel wrote:
> What's the problem about using VBA for the purpose? Step through the
> changes, check what's changed.
>
>
>
>
> <hschmeding@amadeus.com> wrote in message
> news:1151389244.782281.80760@75g2000cwc.googlegroups.com...
> > 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.
> >
> > Jezebel wrote:
> >> For an alternative method: Make a copy of the document. Accept all
> >> changes.
> >> Select all and reset the styles. Now review formatting changes.
> >>
> >>
> >>
> >> <hschmeding@amadeus.com> wrote in message
> >> news:1151336992.411580.177330@c74g2000cwc.googlegroups.com...
> >> > 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
> >> >
> >