G
Greg Maxey
Shimon,
Maybe something like:
Sub DisplayStyleExample()
Dim oDoc As Document
Dim myStyle As Style
Set oDoc = ActiveDocument
For Each myStyle In oDoc.Styles
Selection.Style = myStyle
Selection.Text = myStyle.NameLocal
Selection.Collapse Direction:=wdCollapseEnd
Selection.TypeText Text:=vbCr
Selection.Style = "Normal"
Next myStyle
End Sub
Maybe something like:
Sub DisplayStyleExample()
Dim oDoc As Document
Dim myStyle As Style
Set oDoc = ActiveDocument
For Each myStyle In oDoc.Styles
Selection.Style = myStyle
Selection.Text = myStyle.NameLocal
Selection.Collapse Direction:=wdCollapseEnd
Selection.TypeText Text:=vbCr
Selection.Style = "Normal"
Next myStyle
End Sub