Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Finding bad formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Devlon - 29 Jan 2005 16:49 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.