View Single Post
 
Old 07-19-2012, 03:51 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,338
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

Try the following macro in an empty document:
Code:
Sub GetBuiltinParaStyleDefs()
Dim oSty As Style, StrSty As String, TbStp As TabStop, SngTab As Single
With ActiveDocument
  For Each oSty In .Styles
    With oSty
      StrSty = ""
      If .BuiltIn = True Then
        If .Type = wdStyleTypeParagraph Then
          With .ParagraphFormat
            StrSty = "Style: " & ActiveDocument.Styles(oSty).NameLocal & vbTab
            StrSty = StrSty & StrSty & "Alignment: " & .Alignment
            StrSty = StrSty & Chr(11) & "Font: " & ActiveDocument.Styles(oSty).Font.Name
            If ActiveDocument.Styles(oSty).Font.Bold = True Then StrSty = StrSty & " (Bold)"
            StrSty = StrSty & vbTab & "Size: " & ActiveDocument.Styles(oSty).Font.Size
            StrSty = StrSty & Chr(11) & "First Line Indent: " & PointsToInches(.FirstLineIndent)
            StrSty = StrSty & Chr(11) & "Right Indent: " & PointsToInches(.RightIndent)
            StrSty = StrSty & Chr(11) & "Left Indent: " & PointsToInches(.LeftIndent)
            StrSty = StrSty & Chr(11) & "Space After: " & PointsToInches(.SpaceAfter)
            StrSty = StrSty & Chr(11) & "Space Before: " & PointsToInches(.SpaceBefore)
            For Each TbStp In .TabStops
              StrSty = StrSty & Chr(11) & "TabStop Alignment: "
              Select Case TbStp.Alignment
                Case 0: StrSty = StrSty & "Left"
                Case 1: StrSty = StrSty & "Center"
                Case 2: StrSty = StrSty & "Right"
                Case 3: StrSty = StrSty & "Decimal"
                Case 4: StrSty = StrSty & "Bar"
                Case 6: StrSty = StrSty & "List"
              End Select
              StrSty = StrSty & " @ " & PointsToInches(TbStp.Position)
            Next
            StrSty = StrSty & vbCr
          End With
        End If
      End If
    End With
    .Range.InsertAfter StrSty
  Next
End With
End Sub
This will output a list of all the paragraph Styles in your document, with their basic attributes.

For installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote