Search & Replace in Hyperlinks

Description : Search and replace in hyperlink URLs in the current page, section or notebook


Author(s) : Omer Atay
Category : Find
Last Updated : June 12, 2017
Requirements : OneNote 2010 or above
Screenshot :

Search & Replace in Hyperlinks

Find part of hyperlink
Replace with
Changelog :

June 12, 2017 (E516F3) - Omer Atay
Added option to do case insensitive search

February 06, 2017 (F693C9) - Omer Atay
Updated to search and replace hyperlinks in images as well as text

June 20, 2016 (5F05B6) - Omer Atay
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

January 07, 2014 - Omer Atay
Initial version


SBTL - 2021-12-28
I'm trying to replace internal links from a Notebook on Onedrive.

It's not working so far. It says it can't find the link.

I'm using 2016, and tried the version from windows and cant find any setting to "Go to Settings > Show Page XML" to be able to edit the links to a format it understands...

Any chance the macro can be modified to accept internal links without needed to edit links?..
Anita - 2021-09-21
I tried running this macro but I keep getting the error: "Macro failed with this error: Cannot continue this operation as there is content on this page from a future version of OneNote". Is there anyway around this as I have heaps of hyperlinks I need to update in this notebook. Any help appreciated :-)
Louis - 2020-06-17
it's interesting but it doesn't work me on a one note 365 16.0, maybe because there are blank spaces? I have tried to edit links which goes to the same page.