Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2019, 04:30 PM
Guessed's Avatar
Guessed Guessed is offline Help on Extracting Header Outline Level Of Tracked Changes to New Document Windows 10 Help on Extracting Header Outline Level Of Tracked Changes to New Document Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
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
  #2  
Old 08-12-2019, 01:30 AM
doeclapton doeclapton is offline Help on Extracting Header Outline Level Of Tracked Changes to New Document Windows 7 64bit Help on Extracting Header Outline Level Of Tracked Changes to New Document Office 2010
Novice
Help on Extracting Header Outline Level Of Tracked Changes to New Document
 
Join Date: Jul 2019
Posts: 8
doeclapton is on a distinguished road
Default

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!
Reply With Quote
Reply

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
Help on Extracting Header Outline Level Of Tracked Changes to New Document Outline mode: does not go to next level ward calaway Word 4 05-27-2016 04:24 PM
Help on Extracting Header Outline Level Of Tracked Changes to New Document What is Outline Level mmoid2015 Word 1 01-16-2015 03:55 AM
Help on Extracting Header Outline Level Of Tracked Changes to New Document Paragraph Outline level changes bburns Word 10 07-16-2013 02:34 AM
Help on Extracting Header Outline Level Of Tracked Changes to New Document Heading level numbering in 2010 - wrong after second header level 1 taran Word 3 07-08-2013 01:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft