|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Find instances of heading text in the body of my doc, make cross reference to the actual heading
This is a follow-up to my previous question. Now that I have found and applied a Heading 1 style to the text, I've removed "State Community Name:" from all of the instances so I am now just left with the community names (e.g. GRASSLAND, FOREST, etc) formatted as Heading 1.
I'd like to find all instances of GRASSLAND, including grassland and Grassland, in the body and make a cross reference to the heading GRASSLAND, so a reader can click on the word grassland in the body and navigate to the GRASSLAND section. There are a couple hundred different Heading 1 instances (e.g. FOREST, LAKE, etc), so I'd prefer a method that could mostly automate this. Any help is appreciated! |
#2
|
||||
|
||||
Assign a bookmark to your Grassland heading (or, at least, to Grassland itself), then insert a cross-reference to it. Copy that cross-reference to the clipboard and use Find/Replace, where:
Find = Grassland Replace = ^c Note: If you use Replace All, Grassland in your heading will be replaced, so you'll have to either not use that or, if you do, restore Grassland there (and perhaps the bookmark, too) after doing the Find/Replace. Again, no macros required.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks! That's a great solution for one, but can get pretty tedious with a few hundred. Any suggestions for that?
|
#4
|
||||
|
||||
Unless there's a way of identifying what they'll be before trying to create the bookmarks & cross-references, that's the best there is.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Quote:
|
Tags |
cross reference, styles |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
insert cross-reference – why is a level 2 style not a heading? | eNGiNe | Word | 8 | 01-30-2018 06:00 AM |
Word changing my body text to heading text when I apply paragraph numbering | ddiemetric | Word | 1 | 01-17-2017 01:10 PM |
Is adding noncollapsable body text after collapsable heading possable? | Rolando_d | Word | 1 | 07-24-2016 08:57 AM |
Cross Reference Heading Number with the word "Section" included | bblouin | Word | 5 | 12-20-2012 05:27 PM |
Numbering Body text with prefixed Heading Level | kmeloy | Word | 5 | 10-04-2012 01:04 AM |