View Single Post
 
Old 07-25-2019, 04:30 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

This is a bigger job than I have the time or appetite to solve at the moment so I'll just add some info in the hope that you might be able to solve it yourself.

Assuming the 3 levels of numbers are all in the same outline list, you might be able to extract them in two different ways.
1. Create an iterative loop that works out the current level (eg 3) then searches back for the preceding level 2 then the preceding level 1.
2. Create a temporary Ref field (a cross reference) at that point and include the full context switch '\w' to concatenate the relevant levels. Harvest the value of that field before removing it.

Your example appears to show a single tracked revision (its all red and underlined) so that is a problem you will need to solve by testing each paragraph in the tracked revision to find out if it is numbered.

If none of the paragraphs are numbered, is the macro to search up through the document until it finds a numbered (or heading) paragraph? Or does it not report a number?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote