Return the List Style used in a document

gailb
3StarLounger
Posts: 254
Joined: 09 May 2020, 14:00

Return the List Style used in a document

Post by gailb »

Is it possible to return all the levels of an outline format?

In my document, the first level is wdListNumberStyleUppercaseRoman, but can I have VBA identify the rest of the outline and the List Styles Names?

Maybe it ends up being
wdListNumberStyleUppercaseRoman
wdListNumberStyleUppercaseLetter
etc.

Also, this would be fine just printing out to the immediate window.

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Return the List Style used in a document

Post by HansV »

Please attach a sample document to test on.
Best wishes,
Hans

gailb
3StarLounger
Posts: 254
Joined: 09 May 2020, 14:00

Re: Return the List Style used in a document

Post by gailb »

I'm going to run a macro on this document to setup heading styles, but need to extract the current wdListNumberStyle.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78235
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Return the List Style used in a document

Post by HansV »

Hmm.. this is beyond me. I'm sure one of our Word experts will be able to solve this.
Best wishes,
Hans