M
ML
Is there a way to reference the number of instances of a Style that is being
used in a document similar to the way that you get this when right clicking
on the style name in the Stayles and Formatting window?
I want to get the number of paragraphs that are formatted in a specific
style.
I'm currently doing the following but it is slow:
For i = 1 To ActiveDocument.Paragraphs.Count
If ActiveDocument.Paragraphs(i).Style = ActiveDocument.Styles("My
Styles") Then
x = x + 1
End If
Next i
used in a document similar to the way that you get this when right clicking
on the style name in the Stayles and Formatting window?
I want to get the number of paragraphs that are formatted in a specific
style.
I'm currently doing the following but it is slow:
For i = 1 To ActiveDocument.Paragraphs.Count
If ActiveDocument.Paragraphs(i).Style = ActiveDocument.Styles("My
Styles") Then
x = x + 1
End If
Next i