SOLVED

Hyperlink in MS Word to an anchor on a web page

Copper Contributor

I need to insert the following link in an MS Word document:

https://creabook.app/guide/topic.htm?#t=Part_1_Preliminaries%2FChapter%201%2C3%20Book%20cover%2FChap...

 

This redirects to the #subtitle anchor of the Web page.

 

When I save the link in the MS Word document, the format does not take into account the anchor.

 

image.png

I use MS Word 2019. Is anyone has an idea how to insert links containing anchors?

 

I tried to deactivate "update links on save" in File > Option > Advanced Options > General > Web Options > Files

 

No result.

 

Thx !

 

Firefox_Screenshot_2023-02-10T10-42-58.303Z.png

5 Replies
best response confirmed by spartitus (Copper Contributor)
Solution

@spartitus Paste the link from your post into a document and then with the selection inside the code, right click and then left click on Edit Hyperlink

 

Doug_Robbins_Word_MVP_4-1676071334879.png

 

Then, in the Edit Hyperlink dialog, replace the code shown ni the Text to dsiplay: control with the text that you want to appear as the hyperlink in your document

Doug_Robbins_Word_MVP_5-1676071489367.png

When you toggle off the display of the fields codes, you will then see

Doug_Robbins_Word_MVP_6-1676071628534.png

and clicking on it will take you to

Doug_Robbins_Word_MVP_7-1676071655530.png

 

 

 

 

@spartitus 

You could simply add #subtitle to the link in the dialog or in the field code, if you know the name of the bookmark.

 

Or, you could use the Bookmark button on the dialog (Signet on your screenshot). That gives you a list of the bookmarked locations in the web page.

 

Charles_Kenyon_0-1676087991373.png

00 deleteme 1.png

Issues fixed. Thank you very much !
That's what I tried to do. But it didn't work. Anyhow, thanks for your help.

@spartitus You are welcome.
So, for you, the solution is to:

  • Add the #subtitle text in the field as described by Doug?
  • Add the #subtitle text after the link in the dialog box?
  • Click on Bookmark button and find the location?
1 best response

Accepted Solutions
best response confirmed by spartitus (Copper Contributor)
Solution

@spartitus Paste the link from your post into a document and then with the selection inside the code, right click and then left click on Edit Hyperlink

 

Doug_Robbins_Word_MVP_4-1676071334879.png

 

Then, in the Edit Hyperlink dialog, replace the code shown ni the Text to dsiplay: control with the text that you want to appear as the hyperlink in your document

Doug_Robbins_Word_MVP_5-1676071489367.png

When you toggle off the display of the fields codes, you will then see

Doug_Robbins_Word_MVP_6-1676071628534.png

and clicking on it will take you to

Doug_Robbins_Word_MVP_7-1676071655530.png

 

 

 

 

View solution in original post