Microsoft Office Forums Remove FilePath from hyperlink

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2019, 06:34 PM
justinmo justinmo is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Novice
Remove FilePath from hyperlink
 
Join Date: Sep 2018
Posts: 7
justinmo is on a distinguished road
Default Remove FilePath from hyperlink

Is there a way to remove the complete filepath from a hyperlink? I have attached an image that illustrates what I with to remove (the highlighted text).
Attached Images
File Type: png ToC Snip.PNG (29.1 KB, 10 views)
Reply With Quote
  #2  
Old 02-05-2019, 06:42 PM
Guessed's Avatar
Guessed Guessed is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 1,240
Guessed has a spectacular aura aboutGuessed has a spectacular aura aboutGuessed has a spectacular aura about
Default

A hyperlink has two parts: the text that is displayed and the path that is linked. These two items are independent of each other.

If you choose to edit the hyperlink, you can change the displayed text to whatever you want it to be without changing the path (which needs to remain and be visible when hovering over the hyperlink). It would be a security risk if you couldn't see the hyperlink path when hovering over the link so if it was possible to hide the path on hover (and I don't think it is) it would be a very bad idea to do so.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 02-05-2019, 08:31 PM
macropod's Avatar
macropod macropod is offline Remove FilePath from hyperlink Windows 7 64bit Remove FilePath from hyperlink Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,533
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

What you're displaying is the filepath for a heading entry in a Table of Contents. It is not a hyperlink, as such. It also isn't apparent why you'd want to remove that but, if you don't want to see it, select the Table of Contents, press Shift-F9 to expose the field code - which will look something like {TOC \h} - then delete the \h and press F9 to update.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #4  
Old 02-06-2019, 08:55 AM
Charles Kenyon Charles Kenyon is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,899
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Paul's recommendation to delete the \h switch gets rid of the hyperlink properety for the text (leaving it for the page numbers).



I am curious as to how you are getting that tooltip to display. In my Table of Contents it only says Current Document.


Is your TOC constructed from multiple documents?


On your own computer you can turn off display of tooltips.
Reply With Quote
  #5  
Old 02-06-2019, 12:46 PM
justinmo justinmo is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Novice
Remove FilePath from hyperlink
 
Join Date: Sep 2018
Posts: 7
justinmo is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Paul's recommendation to delete the \h switch gets rid of the hyperlink properety for the text (leaving it for the page numbers).



I am curious as to how you are getting that tooltip to display. In my Table of Contents it only says Current Document.


Is your TOC constructed from multiple documents?


On your own computer you can turn off display of tooltips.
I misspoke when I referred to them as hyperlinks. That being said, I do not know why my 'links' show the full path, rather than just "Current Document" as yours does. I also have the same issue when linking to other bookmarks in my document; it includes the full document path, rather than just the bookmark name. I deselected the 'Show document tooltips on hover, in the Display Option, which removed it altogether, but I want it to show the same image feature as your screenshot.
Reply With Quote
  #6  
Old 02-06-2019, 12:51 PM
macropod's Avatar
macropod macropod is offline Remove FilePath from hyperlink Windows 7 64bit Remove FilePath from hyperlink Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,533
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Quote:
Originally Posted by Charles Kenyon View Post
I am curious as to how you are getting that tooltip to display. In my Table of Contents it only says Current Document.
It's the \h switch that causes the path to display when hovering over the heading in a Table of Contents.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #7  
Old 02-06-2019, 02:30 PM
Charles Kenyon Charles Kenyon is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,899
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Quote:
Originally Posted by macropod View Post
It's the \h switch that causes the path to display when hovering over the heading in a Table of Contents.

No, it is not. The \h switch primarily* controls whether the text acts as a hyperlink. If it acts as a hyperlink and tooltips display, I get the "Current document" rather than the text of the link. If it doesn't act as a hyperlink (no \h switch) then no tooltip displays because there is no hyperlink. My screenshot (in other post) is from a TOC with the \h switch. The same "Current document" happens with an internal hyperlink to a heading.

Word 2010, 365 same result.


* It also has some influence on how direct formatting in the document changes the TOC.
TOC and Direct Formatting
Reply With Quote
  #8  
Old 02-06-2019, 02:52 PM
Charles Kenyon Charles Kenyon is offline Remove FilePath from hyperlink Windows 10 Remove FilePath from hyperlink Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,899
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Paul, there must be some other setting in Word which controls whether the full link displays or "Current Document" but I have no clue what it would be.


Here's one to a bookmark named MyBookmark in the current document.

It shows the name of the bookmark, not "Current Document" nor the full link, nor the contents of the bookmark!


And, in the same document, a link to an external file will give the full URL/link.


perplex.jpg
Reply With Quote
Reply

Tags
hyperlink, remove filepath

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove all hyperlink text ewso Word 5 04-05-2017 05:18 PM
Remove Hyperlink in Rules before forwaerding e-mail meleprinting Outlook 0 06-29-2016 09:30 AM
Remove FilePath from hyperlink Remove Hyperlink RobDavis Word VBA 8 12-09-2013 05:51 PM
Remove FilePath from hyperlink need to email hyperlink (filepath) from word doc jackj22 Word VBA 7 05-29-2012 04:06 PM
How to remove the UNDERLINE from a hyperlink text? Learner7 PowerPoint 3 05-17-2010 09:35 PM


All times are GMT -7. The time now is 08:32 AM.


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