Search & Replace in Hyperlinks

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


Search & Replace in Hyperlinks

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
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


Pavan - 2018-01-15
The macro is replacing Web URL's not the Local URL's to files or explorer link to SharePoint.
Omer Atay - 2017-12-12
RGreen: It is likely that the local URL is internally stored with a forward slash. Go to Settings > Show Page XML to see how it is internally stored and use that format to search and replace. See older comments below too.
RGreen - 2017-12-12
I'd highly appreciate that the macro support forward slashes (for web URLs) as well as backslashes (for local files), since both are hyperlinks. Currently, only web URLs are supported.