Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2022, 07:16 PM
aidanlangmead aidanlangmead is offline How can I replace UNC paths in hyperlinks with webpage paths? Windows 10 How can I replace UNC paths in hyperlinks with webpage paths? Office 2021
Novice
How can I replace UNC paths in hyperlinks with webpage paths?
 
Join Date: Jul 2022
Posts: 2
aidanlangmead is on a distinguished road
Default How can I replace UNC paths in hyperlinks with webpage paths?

I need to replace hyperlinks that currently link to a file share with links to a Sharepoint site.



So currently the hyperlinks look like:

Code:
\\servername\file\file\file name \worddoc.docx
And it needs to look like:

Code:
https://mydomain.sharepoint.com/sites/file_path/Shared%20Documents/General/
I'm currently having issues using Find and Replace to find the hyperlink paths. When I search ^d HYPERLINK only internally linked things are appearing (links to other parts of the document).

Does anyone know how I can:

Search within hyperlinks, and then use find and replace to replace a part of the link?
Reply With Quote
  #2  
Old 07-26-2022, 09:57 PM
Guessed's Avatar
Guessed Guessed is offline How can I replace UNC paths in hyperlinks with webpage paths? Windows 10 How can I replace UNC paths in hyperlinks with webpage paths? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Hyperlinks are in two parts:
1. The text range in the document (the words you can see on the page)
2. The hyperlink address that the link tries to open in a browser

If you are trying to modify the text range then just do a normal find/replace

If you are trying to modify the addresses, toggle field codes first by pressing Alt-F9 then use the find/replace dialog
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 07-26-2022, 10:50 PM
aidanlangmead aidanlangmead is offline How can I replace UNC paths in hyperlinks with webpage paths? Windows 10 How can I replace UNC paths in hyperlinks with webpage paths? Office 2021
Novice
How can I replace UNC paths in hyperlinks with webpage paths?
 
Join Date: Jul 2022
Posts: 2
aidanlangmead is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
Hyperlinks are in two parts:
1. The text range in the document (the words you can see on the page)
2. The hyperlink address that the link tries to open in a browser

If you are trying to modify the text range then just do a normal find/replace

If you are trying to modify the addresses, toggle field codes first by pressing Alt-F9 then use the find/replace dialog
So I've hit Alt-F9 but it just appears like the following:


Any idea?
Reply With Quote
  #4  
Old 07-27-2022, 07:03 AM
Charles Kenyon Charles Kenyon is offline How can I replace UNC paths in hyperlinks with webpage paths? Windows 11 How can I replace UNC paths in hyperlinks with webpage paths? Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
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 sure that it helps, but Hyperlink fields contain additional information that is not shown with Alt+F9 (as do AutoTextList fields).


You may be able to get at it using vba.

See also Paul Edstein's Word Fields and Relative Paths to External Files.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I replace UNC paths in hyperlinks with webpage paths? Convert Folder paths to Hyperlinks PhilS Word 3 01-04-2022 10:18 AM
Network Paths not formatting as hyperlinks kneghx Outlook 0 10-11-2018 11:10 AM
Two motion paths iskenderbaris PowerPoint 0 04-12-2012 03:13 AM
motion paths Cath5000 PowerPoint 0 07-29-2011 10:59 AM
Motion Paths with Rotation PBone PowerPoint 4 01-13-2011 11:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:34 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