View Single Post
 
Old 04-15-2018, 03:06 PM
Dwids Dwids is offline Windows 10 Office 2016
Novice
 
Join Date: Apr 2018
Posts: 5
Dwids is on a distinguished road
Default Formatted list of which heading a specific Style in 'under'

Hello. My first post here. I've searched first, so apologies if this has been covered.

We have an external person who 'owns' our large documents. They've just gone and added their 'instructions' in green text to the body of the quite empty new doc, like this mock up. I should add it is quite empty of body-text but has lots of 'shell' sections like this :
2.1 Overview
2.1.1 Network Structure
The network is based on TCP/IP and uses industry standard (etc)

Get Sally to update this section to add the firewall

The Internet connection is using ADSL2+ (etc).
They didn't even use a separate Style. "Sally" is actually an external contributor and I need to extract just 'her' sections, plus for the other parties...preferably into a Table or Excel list. This will be their work-list, they can check-off.

I've managed to turn the Green bits into a new Style and build a manual TOC including it, which sort of does what I want, but not really. I'm wondering if I can use VBA to:

a) Loop thru and find all my new "Instructions" (green) style
b) Look back/up at what the 'nearest' heading is, i.e. that the Instructions 'belong' to (2.1.1 Network Structure)
c) Write out the Instructions text and full heading to a table or CSV, like this

'2.1.1 Network Structure', 'Get Sally to update this section to add the firewall'

Thanks!
Reply With Quote