![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
We have been able to make a separate function that now returns the appropriate header level. However, a new issue appeared. Word now crashes everytime the Macro is run on some large files.
I'll be attaching the two modules in here along with the test documents. Macro Modules: ExtractEdryl.zip Test documents: Test Documents.zip Would you be able to help me in figuring out how to avoid these file crashes? Thanks! |
|
| Tags |
| headers, macro, tracked changes |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help on Extracting Outline Level Of Tracked Changes To New Document | doeclapton | Word VBA | 1 | 07-24-2019 07:01 AM |
Outline mode: does not go to next level
|
ward calaway | Word | 4 | 05-27-2016 04:24 PM |
What is Outline Level
|
mmoid2015 | Word | 1 | 01-16-2015 03:55 AM |
Paragraph Outline level changes
|
bburns | Word | 10 | 07-16-2013 02:34 AM |
Heading level numbering in 2010 - wrong after second header level 1
|
taran | Word | 3 | 07-08-2013 01:12 PM |