I'm using a VBA macro to collect information on the paragraph style. It uses a line like this:
Dim para as paragraph
Dim strStyle as string
Dim arrStyles() as string
Dim i as long
i = 0
For each para in activedocument.paragraphs
i = i + 1
arrStyles(i) = para.style
That works fine. However, it records the short version of the paragraph style, for instance:
If the first paragraph is "Header 1" it records "Header 1" in my array. Good.
But if the first paragraph is "Header 1 + 10pt" it records "Header 1" in my array. Bad.
It always records the short version and never the full one that takes account of user changes.
So my question for all you experts, Is there any way to capture the full name of the style that is actually used as a string. In other words, how can I get it to say "Header 1 + 10pt" if that is what the style has become?
Thanks in advance for any advice you can offer.