Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

How to LINK the same word throughout a document

Jul 12, 2007 5:12AM PDT

Ok. What I am trying to do is create an HTML document that I will later translate into a HelpFile (using a Help Authoring Tool) into what is called a CHM file. A CHM file is basically, a compiled set of HTML files into a single document which when inserted with code, becomes the "Help" document found in sofware.

You can create help files in Word and then take it from there in a Help Authoring Tool.

Now here is what I am trying to do:

Let's say, that I have a heading called "Compiler." In the very same document (or in other HTML files), let's say I use the word "Compiler" 50 times, in various different places, scattered throughout the text.

I want to be able to click on either the header called "Compiler"
and it takes me to each and every INSTANCE of the word throughout out the text (one instance after another). It's sort of like a search and highlight, but not exactly like that. The best way I could put it, is to LINK all the instances of the word "Compiler" and then no matter where you clicked on this word, it would take you to another instance...it's sort of like a hyperlink, but NOT THE SAME THING.
I do not want to merely connect to the internet. I do not want to only cross-reference from some header to another header...I am not thinking in terms of Word's definition of cross-linking.

I merely want to link all the instances of the same word or sentence or whatever to every other instance of the same and make them clickable links..either WITHIN or BETWEEN one or more HTML documents.

Does anyone know how to do this? Can Word do this? What are the steps?

Thanks

Discussion is locked

- Collapse -
I would Hyperlink it
Jul 12, 2007 5:32AM PDT

Word does this. It allows Hyperlinks to other areas of a document.

Look under Word Help for Hyperlink, then "A specific location in another document"


Mark

- Collapse -
Thanks Mark
Jul 12, 2007 7:30AM PDT

I will try that and see what happens. Jim

- Collapse -
Tried it...need advice
Jul 12, 2007 7:52AM PDT

Mark:

I did in fact look this up and sure enough, you can make a hyperlink to a different file. What I am more concerned with, though, is how to make multiple hyperlinks WITHIN the same document.

For example, let's say that I want to look up on the same document every instance of the word "Georgia." Let's just use an example I created:

Georgia


There are lots of states in the US, but one of them is Georgia. I have only been to Georgia one time?while stopping at the airport in Atlanta. I have often wondered why Georgia uses a peach on their vehicle license plates. Somehow, I think that is Georgia.

Going to Georgia might be interesting. You might take a car to Georgia or you might bring everyone from Georgia to you.

You can see how many times I used the word "Georgia." How could I link them all?

THe purpose of this is that when a Help Compiler compiles all the files in a HelpFile, it produces one HelpFile or CHM file. So if a person looks up the word "Georgia" in a search under Help, they should be able to find at least one instance of Georgia in the Helpfile. Further, they may want to know how Georgia relates to a different topic in the Helpfile. Let's say, this current topic is:

Facts About Georgia

So now, the word Georgia is found in "Facs About Georgia."

Next, I create another topic called:

States of the United States

In this topic, I discuss each state including Georgia. I might also mention Georgia for some reason in relation to other states. For example, I might be talking about adjacent states to Georgia. I could say, "South Carolina and Georgia are neighboring states."

Now, that means, that I have the word "Georgia" in the topic "Facts About Georgia" AND "States of the United States."

It would go something like this:

I enter "Georgia" in a help search box

Up comes a list that says:

Facts About Georgia
States of the United States

I can either click on one or the other. So I click on Facts About Georgia

Now, once that opens up, every instance of Georgia is highlighted and if I click on any one of them, it could take me either to every other instance within that topic or it could take me to the first occurance of Georgia in the topic "States of the United States."

See how this would work? The user to could literally find every instance of Georgia in the entire Help doing this.

That is what I am trying to do.

- Collapse -
Yep, I understand.
Jul 12, 2007 7:18PM PDT

The thing is, making these hyperlinks to other places within the Word doc will not be an automated process. You will have to create each one individually. I'm sure you could create a macro to do this for you, but I know little about Word macros.

This is how you would do it, manually. I now see that you have to create Bookmarks first, so this isn't as easy as I first thought.

For example, in the document place your cursor over the first instance of Georgia that you would want to link to. Go to Insert > Bookmark and type a name for this first bookmark, eg Georgia1. Click OK.

Then you find the first word, Georgia, and highlight it. Goto Insert > Hyperlink. In the new window, Georgia will be selected as the "Word to display". Look on the left for "Place in this document", and click it. You should see your bookmark listed, Georgia1. Highlight that, click OK, and it's done. Your first hyperlink.

It's going to take some work to sort out, so I'm not sure if this is the most suitable for you. However, projects like this do take a while to set up, but once it is, it is easier to maintain.

Mark

- Collapse -
Hyperlink issue
Sep 19, 2007 9:47AM PDT

Hi,

I am trying to create hyperlink to specific location in different word doc. My source is also a word doc. I've tried using bookmark in target doc and hyperlinks in source. But it always takes me to locations not bookmarked against the hyperlink in target doc.

Please help.

-TW

- Collapse -
Did you follow Word's Help guidance?
Sep 19, 2007 6:12PM PDT

Word's help guidance says this;

A specific location in another document or web page

1) Open the file you want to go to and insert a bookmark.
2) Open the file you want to link from, and select the text or object you want to make a hyperlink.
3) On the Standard toolbar, click Insert Hyperlink .
4) Under Link to, click Existing File or Web Page.
5) Locate and select the document that you want to link to.
6) Click Bookmark, and then select the bookmark you want.

Word uses the path to the file including the bookmark name as the tip if you do not specify one


When you insert a bookmark in the target document, you need to "Save" that document first. Otherwise I assume the hyperlink will fail.

Also, when you are creating the hyperlink in the starting-point document, you have to navigate to where the target document is saved, then highlight it, and instead of clicking OK, click the "Bookmark" button, to add the bookmarked place to the hyperlink.

It works for me. I've just tried it on a couple of documents.

Mark

- Collapse -
Thanks Mark
Sep 20, 2007 3:11AM PDT

Thanks Mark for the long term follow-up. I will try out your suggestions and see how it works. Thank you for remembering my
question on the site.

- Collapse -
Tried Word's hyperlink guide
Sep 20, 2007 6:23AM PDT

Thanks Mark. I did try that process before. But the hyperlink always takes me to top of the target docuemnt, when however I want to go to a particular location in target document.
I did use the bookmark on target and hyperlinmk on source.
Is there a default setting somewhere in Word that takes the hyperlink to top of target?

- Collapse -
No I don't think so.
Sep 20, 2007 6:34PM PDT

I don't think there is any default setting.

This should work. Can you check the bookmarks in your target document, (the one you are trying to link to). Perhaps there's another bookmark there, that's paced at the top of the document.

I think you need to keep trying. If you simply cannot get it to work, try this;

Normal.dot is the main Word Template that stores many of your default settings. Deleting Normal.dot solves many of Word's problems as it often gets corrupted. Do a search for Normal.dot on your computer and delete all that you find. When you re-open Word it will re-create a new Normal.dot.

See if that solves this problem.

Mark

- Collapse -
Still hyperlink issue
Sep 21, 2007 2:53AM PDT

Hi Mark,

Thanks again for your suggestions...I looked up and deleted all bookmarks in target doc..started from begining but still it goes to top of target doc...

I also tried deleting Normal.dot file/s from my computer..still same issue..

I'm using Windows XP and Word 2003...Sorry to bother you..but I tried with other word documents and it does not work there too..

Is it possible to send me any two random word docs you worked on for creating hyperlink? You can send them to timber_world56 at hotmail dot com

I sincerely appreciate your help.

-TW

- Collapse -
Sent
Sep 21, 2007 6:23AM PDT

Two test documents sent.

I hope they help. Please report back here the results.

Mark