Skip to content

Instantly share code, notes, and snippets.

@Snegovikufa
Created October 23, 2017 11:46
Show Gist options
  • Select an option

  • Save Snegovikufa/868e8e876d3fcdf409533529307353b7 to your computer and use it in GitHub Desktop.

Select an option

Save Snegovikufa/868e8e876d3fcdf409533529307353b7 to your computer and use it in GitHub Desktop.

Revisions

  1. Snegovikufa created this gist Oct 23, 2017.
    9 changes: 9 additions & 0 deletions word.vb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    Sub DelUserStyles()
    Dim objStyle As Style

    For Each objStyle In ActiveDocument.Styles
    If Not objStyle.BuiltIn Then
    objStyle.Delete
    End If
    Next
    End Sub