|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Can a I create an index in a word document where index entries control sections of the document?
I write a lot of reports that summarize test results. For the sake of argument, let's say there is a total of 50 tests that could potentially be included in a report, and any particular report has somewhere between 10-30 specific test results. I would like to create a document template that has an 'index' list of all of the potential tests, as well as a templated section of text for each specific test. This is all straightforward enough, but what I would like to do is link each index value (i.e., each test name) with its relevant section of text, so that if I delete the index value/test name from the index, it would autodelete the associated section of text from my report body.
Is there a mechanism in Word to do something like this? Thanks in advance for any assistance- I didn't have any luck trying to google this issue. Last edited by Charles Kenyon; 12-28-2017 at 08:57 AM. Reason: Change title to give more accurate information about problem. |
#2
|
|||
|
|||
Not with an Index, but using Heading styles for your test names, they can show up in the navigation pane. Use the navigation pane of the heading styles and delete your relevant headings from that pane. That will delete the content between that name and the next one.
Why use Microsoft Word’s built-in heading styles? by Shauna Kelly You can also collapse the text following your headings in the template and do the same thing by deleting the headings within the document itself. Then expand the text. |
#3
|
|||
|
|||
Follow-Up
Thank you for the response and the ideas/links. However, I neglected to mention a facet of my issue in the initial post that seems to preclude the 'Heading Styles' approach. Below is a very scaled back example of my template that illustrates how tests are clustered together in a way that seems to ruin the heading approach. Is there any way I could set up my template so that I could have a list of potential tests, but delete an individual one from this list and have the associated descriptive sentence later in the body of the report autodelete as well? For example, say Test Y was not given in this instance but everything else should stay. I would like to be able to delete 'Test Y' from the completed tests lists and have the second sentence from the Test Group 1 section go away as well. Seems like it might not be possible, but any ideas would be appreciated. Thanks!
Completed Tests: Test X, Test Y, Test Z, Test A, Test B, Test C Test Group 1 On test X, the patient's value was ___. On test Y, the patient's value was ____. On test Z, the patient's value was ___. Test Group 2 On test A, the patient's value was ___. On test B, the patient's value was ___. On test C, the patient's value was ____. |
#4
|
|||
|
|||
There is no simple way to do this.
You could have a userform to pick your tests and put your text together. This is a different level of document construction that involves vba programming. Create a Simple Userform Create & Employ a Userform A userform is a custom dialog box where you set up the options and then tell Word what to do based on the options set. Using them well requires a good understanding of how Word works and many of its features including bookmarks and perhaps AutoText. It also requires at least some programming skills not otherwise required to use Word. |
Tags |
index, msword |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I create an index of every word in a document? | jbengal | Word | 5 | 11-23-2022 02:17 PM |
Create document index looking for certain formatted text | leaning | Word | 1 | 08-28-2017 08:58 PM |
WEIRD line spacing in document I didn't create - sample attached. Thanks! | aphex242 | Word | 2 | 02-10-2016 07:27 PM |
How to create an Index for an existing document | JimAlexander | Word | 0 | 11-10-2013 11:19 AM |
Code to Create & Format Document Sections | sleake | Word | 6 | 04-26-2012 04:14 AM |