Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2022, 11:34 AM
Charles Kenyon Charles Kenyon is offline Blank Template Windows 11 Blank Template Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,583
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

All documents have access to hundreds of styles built into Word. You cannot change that.


You can Restrict Editing to a selection of Styles under the Developer Tab.

You can also remove styles from the Home Tab.
Here is a macro to do that:
Code:
Sub StylesQuickStylesOff()
    ' Charles Kenyon 2018-12-03
    '
    ' This is preparatory to saving a Quick Style Set for only certain styles
    ' Strips all styles from quickstyles gallery
    '
    '
    Dim aStyle As Style
    On Error Resume Next
    For Each aStyle In ActiveDocument.Styles
        aStyle.QuickStyle = False
    Next aStyle
    On Error GoTo -1
End Sub
Here is a macro to remove unused custom styles from a document/template:
Code:
Sub StylesDeleteUnusedStyles()
    '   Allen Wyatt
    '   https://word.tips.net/T001337_Removing_Unused_Styles.html
    '
    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
Reply With Quote
  #2  
Old 08-13-2022, 02:47 PM
cos cos is offline Blank Template Windows 10 Blank Template Office 2016
Novice
Blank Template
 
Join Date: Oct 2018
Posts: 11
cos is on a distinguished road
Default

Thanks for this Charles,



One problem with Restricting Editing is that MultiLevel lists are also disabled - I cannot find a way to have restrictions and lists...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Template with background colors has extra blank page that will not delete. jspinelli27 Word 1 03-11-2018 02:27 PM
Blank Template Changing my Excel 2010 Blank/Default Template revmwilson8 Excel 1 08-09-2016 02:57 AM
Blank Template Is there a blank CD inlay jewel case template philbox Word 4 11-29-2015 06:48 AM
Blank Keyboard Template Needed LTCSZ Word 0 09-12-2014 05:27 PM
Blank Template want to make letterhead template with second page blank William Whitney Word 4 06-20-2014 05:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:41 PM.


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