C
crookie74
I would like to be able to get out the full list number hierarchy of wherever I am in a document. So if i have
1 Top Level text
1.1 Second Level text
(a)Third Level text item 1
(b)Third Level text item 2
and I have some text highlighted on the (b) line, I would like to build a string 1-1.1-(b)
I relise i can get the "(b)" on its own by:
Selection.Range.ListFormat.ListString
or
Selection.Paragraphs(1).Range.ListFormat.ListString
but I dont know how to go from that to the next level up in the hierarchy ie 1.1
Thanks in advance if anyone can help me.
1 Top Level text
1.1 Second Level text
(a)Third Level text item 1
(b)Third Level text item 2
and I have some text highlighted on the (b) line, I would like to build a string 1-1.1-(b)
I relise i can get the "(b)" on its own by:
Selection.Range.ListFormat.ListString
or
Selection.Paragraphs(1).Range.ListFormat.ListString
but I dont know how to go from that to the next level up in the hierarchy ie 1.1
Thanks in advance if anyone can help me.