Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2017, 08:07 AM
pfriorda pfriorda is offline Can a I create an index in a word document where index entries control sections of the document? Windows 7 32bit Can a I create an index in a word document where index entries control sections of the document? Office 2016
Novice
Can a I create an index in a word document where index entries control sections of the document?
 
Join Date: Dec 2017
Posts: 2
pfriorda is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 12-28-2017, 08:53 AM
Charles Kenyon Charles Kenyon is offline Can a I create an index in a word document where index entries control sections of the document? Windows 10 Can a I create an index in a word document where index entries control sections of the document? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #3  
Old 12-28-2017, 12:50 PM
pfriorda pfriorda is offline Can a I create an index in a word document where index entries control sections of the document? Windows 7 32bit Can a I create an index in a word document where index entries control sections of the document? Office 2016
Novice
Can a I create an index in a word document where index entries control sections of the document?
 
Join Date: Dec 2017
Posts: 2
pfriorda is on a distinguished road
Default 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 ____.
Reply With Quote
  #4  
Old 12-28-2017, 08:02 PM
Charles Kenyon Charles Kenyon is offline Can a I create an index in a word document where index entries control sections of the document? Windows 10 Can a I create an index in a word document where index entries control sections of the document? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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

Tags
index, msword

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a I create an index in a word document where index entries control sections of the document? 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
Can a I create an index in a word document where index entries control sections of the document? 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
Can a I create an index in a word document where index entries control sections of the document? Code to Create & Format Document Sections sleake Word 6 04-26-2012 04:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:46 AM.


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