Does anyone know of a way to capture the numbering of a Word document's sections/paragraphs?
I would like to search for the next header. I have a way to do this using
But now I would like to capture the numbering of each header. For example "1.1, 1.2, 1.2.1, 1.2.2, 1.3, etc... these numbers are generated using auto format in Word. It is important that these numbers not be destroyed in this process.Code:Selection.GoTo What:=wdGoToHeading, Which:=wdGoToNext, Count:=1, Name:="" Selection.Find.ClearFormatting
I think I am looking for a way to use code along the lines of
Selection.Paragraphs(1).Range.ListFormat.ListString
But I can't figure out how to implement it.
Any help is appreciated.




Reply With Quote