Dear people,
For some time now, I'm struggling to solve a VBA problem
Some of you already gave some assistance, for which I'm great full.
I'm trying to find some bad formatting in a word document using VBA.
On all paragraphs are paragraph styles applied. On pieces of some
paragraphs, are Character styles applied. On other pieces of text, other
manual formatting is applied like "bold" or "Bold Italic".
I'm trying to detect the pieces of text that has no "character style"
applied and yet have other manual formatting is applied like "Bold Italic".
For example:
Some text is set to bold, this is wrong.
Other text has the character style "BOLD" applied, this is good.
I need to highlight all the bad formatting
Can anyone please help me?
Thanks
JD
Dave Lett - 31 Jan 2005 14:28 GMT
Hi John,
I can't offer _exactly_ what you're looking for, but I might have a workable
solution.
1. Press CTRL + A (to select the entire document)
2. Press CTRL + SPACEBAR (to remove any manual formatting and reset the
characters to the style they've been assigned to)
3. Save the document as a different file name
4. Use Word's Compare Documents feature to compare the difference between
the two documents.
HTH,
Dave
> Dear people,
>
[quoted text clipped - 24 lines]
>
> JD