Sorry to keep choking up the forum with questions, but I’m getting down to the wire on a project and keep hitting some bring walls.
I can’t seem to get the ListType property to work like I have seen example of in this forum and the online help. Consider the following line of code:
MsgBox DocThis.Paragraphs(N).Range.ListFormat.ListType
You would think this would give you one of the constants such as “wdListBullet” or “wdListSimpleNumbering” or “wdListOutlineNumbering”. Instead it gives a constant that I can’t seem to get to come up consistently between the various galleries. For instance, I once got a msgbox of “4” for both a bulleted and for an outline numbered paragraph.
Also I have similar statement:
If DocThis.Paragraphs(N).Range.ListFormat.ListType = wdListBullet Or _
wdListSimpleNumbering Or wdListOutlineNumbering Then
That should not fire if the text is not a numbered or bulleted list, but the procedure goes forward as if it is true, even for regular nonlist paragraphs.
What I want to determine is if the automatic list is using numbers or bullets or if there is no numbering. This should not be that difficult, but .
Thanks for your help!!
Troy