How can I iterate through table styles only?
Posted
by Vitali Climenco
on Stack Overflow
See other posts from Stack Overflow
or by Vitali Climenco
Published on 2010-04-12T05:17:17Z
Indexed on
2010/04/12
5:23 UTC
Read the original article
Hit count: 279
I have a procedure that iterates through the styles available to a document:
Sub EnumerateStyles()
For Each Style in ActiveDocument.Styles
`some custom code
Next
End Sub
I do not need all the styles, and just those that are applicable to tables only. How can I programmatically filter the styles?
Thank you
© Stack Overflow or respective owner