Written by Allen Wyatt (last updated August 21, 2025)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365
Veronica has a document that has been edited, on and off, for years. Various editors have copied text from other documents into the document and, in the process, copied lots of different styles. Veronica needs a quick way to delete all the styles that are not used within the document.
When it comes to deleting unused styles, there is no such thing as a "quick way." It would be nice if Microsoft were to provide such a method, but such is not the case. You can try to create a macro to do the work, such as this one:
Sub DeleteUnusedStyles() Dim oStyle As Style For Each oStyle In ActiveDocument.Styles 'Only check out non-built-in styles If oStyle.BuiltIn = False Then With ActiveDocument.Content.Find .ClearFormatting .Style = oStyle.NameLocal .Execute FindText:="", Format:=True If .Found = False Then oStyle.Delete End With End If Next oStyle End Sub
This is actually a macro I published years ago, way back for Word 2003. There are limits to what such a macro can do. It steps through every style in a document and, if the style is not built-in, it uses Find and Replace to try to locate the style. If the style isn't found, then it is deleted.
The "limits" of which I spoke have to do with the fact that there can be hundreds of styles in a document, especially in documents like Veronica describes. If each style has to be searched for, then the macro can take a very long time to run—on the order of an hour or more. Plus, if the document is quite complex, the macro can actually hang and never finish running. You can see all of these ills described in the comments to the old tip I mentioned:
https://word.tips.net/T001337
Rhonda Bracey described her attempts to delete unused styles on her blog several years ago. She even mentioned the same macro I show above. You can find a very helpful recounting of her efforts here:
https://cybertext.wordpress.com/2022/02/23/word-deleting-many-unused-styles-at-once/
Does all of this mean that a macro to do the deletion could not be developed? No, not really. You could develop a macro, but it would be much more complex than the simple one shown above. If you take the time to read all the comments to my old macro-based tip mentioned above, you can see such attempts.
There may be a simpler, non-macro approach that could be used, however. Here are the general steps that could be tried:
These steps are feasible if the number of styles you see after step 6 is relatively short. If it is not short, there is one other thing you can try. Use Save As (F12) to save your document in RTF format. The export process used by Word should only include those styles actually in use in your document. Then get out of Word entirely and restart the program. Now, load the RTF file and again use Save As to save it as a Word document. The resulting document should only include Word's built-in styles (which you can never delete) and those custom styles in use within the document.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13342) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365.
Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2021 or Microsoft 365. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word Step by Step today!
Have you ever made one formatting change in your document, only to see that change applied to all the paragraphs in the ...
Discover MoreIf there are lots of hands that touch a document, there are lots of ways those hands can mess up the document. You may be ...
Discover MoreWant to customize your styles list so that it only lists the ones you are using? It's easy and can save some time when ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments