Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2011, 10:29 PM
macropod's Avatar
macropod macropod is offline Tables that carry hidden para styles Windows 7 32bit Tables that carry hidden para styles Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Ulodesk,



Here's a macro you might find useful. It simply goes through all the Styles in the active document and deletes any user-defined ones. Any paragraph using a deleted paragraph Style will revert to the Normal Style and anything using a deleted character Style should revert to the underlying paragraph Style.
Code:
Sub CleanUpStyles()
Dim oSty As Style
For Each oSty In ActiveDocument.Styles
  If oSty.BuiltIn = False Then oSty.Delete
Next
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 03-09-2011, 08:07 AM
Ulodesk Ulodesk is offline Tables that carry hidden para styles Windows 7 32bit Tables that carry hidden para styles Office 2007
Word 2013 Expert Cert
Tables that carry hidden para styles
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default The evidence

Dear Paul,

Thank you for the macro, which I installed and ran. What it did, as far as I could see, was delete all the proper custom styles in the document, which were from our template, and leave at least the majority of the invaders. In case you'd like to pursue this little gremlin further, I am attaching a copy of part of the table (the whole thing is too large), with original text replaced.

The styles that begin with K are the styles we use, along with the adapted built-in headings and a handful of others; they number about 60-75, depending on adaptation of template to particular needs. As you'll see, some are already in altered states from authors' machinations. The rest came in with the table. Interestingly, taking just this part of the table and putting it in this new doc for you, knocked most of the numbered heading styles silly. Ours look like 1 (sans bullet) and then like level 4.

Cordially,
Ulodesk
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables that carry hidden para styles Carry-forward: Tab to Tab? markg2 Excel 11 01-30-2011 01:07 AM
Hidden address nicolapiva Outlook 2 11-16-2010 12:12 AM
Don't count hidden slides Lu_Argentina PowerPoint 0 10-12-2010 02:12 PM
Can I carry Outlook 2007 with me on a usb stick? Hansio Outlook 2 09-09-2010 01:29 PM
hidden blank pages mljm Word 3 06-19-2009 03:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft