Excel 365 - How do find/replace a part of the hyperlink

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
752
Office Version
  1. 365
Platform
  1. Windows
Changed servers. Find/Replace doesn't see the text I need to change. What's the trick to doing a mass change (1,000's) of hyperlinks?
 
Definitely something with the %. If I change it to anything else it works fine. Even though it's surrounded by ", could it be interpreting %20 as a variable or something with meaning to VBA?

\c$\Users\MyID\OneDrive%20-%20BRT%20Services,%20Inc\Documents%20-%20BRT_RMT\MAR\CURRENT\Recent@20Update%Plus%20Pending.pdf
 
Upvote 0
Sorry, but it looks quite messy to me and I don't think I can help further w/o hands-on your system.
It's a cloud connected folder, which is on your machine (?) but you access it through localhost (?) hidden shares and it is a relative link.
I will try to test it, but I am confused trying to grasp the idea.
 
Upvote 0
i tested it.
i added links to onedrive through localhost, then started xlsx file through localhost., etc.
and due to security settings I got some messages from it - saying location may not be secure.
The strangest thing - I think the problem comes from here: \c$\Users\MyID\ .....
I think xl considers this as relative link, but does not send you to the root as one may expect. so it doesn't start with \\localshost.
But it adds the starting path of the xlsx file: so you end up with something like:

1743452327913.png

the %20 is no problem at all. it is totally standard and actually a must for most of the normal hyperlinks.
however, ..\..\..\..\c$ this works

the way I see it - the xlsx must be in the path of the hyperlinks, and then you can make them really relative, not starting from c$

This also should work (or with any other network address):
\\localhost\c$\Users\MyID\OneDrive%20-%20BRT%20Services,%20Inc\Documents%20-%20BRT_RMT\MAR\CURRENT\Recent@20Update%Plus%20Pending.pdf
 
Last edited:
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top